Merge "Determine if the activity is the topmost one" into rvc-dev am: b4d5aef6b0 am: c7343394ae

Change-Id: Ib8f3fb007573e4068f3eb0d3b7e2fd470401df6e
This commit is contained in:
TreeHugger Robot
2020-04-10 05:07:56 +00:00
committed by Automerger Merge Worker

View File

@@ -7368,7 +7368,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
} }
final ActivityStack stack = getRootTask(); final ActivityStack stack = getRootTask();
return stack != null && return stack != null &&
stack.checkKeyguardVisibility(this, true /* shouldBeVisible */, true /* isTop */); stack.checkKeyguardVisibility(this, true /* shouldBeVisible */,
stack.topRunningActivity() == this /* isTop */);
} }
void setTurnScreenOn(boolean turnScreenOn) { void setTurnScreenOn(boolean turnScreenOn) {