Merge "Determine if the activity is the topmost one" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-10 04:07:28 +00:00
committed by Android (Google) Code Review

View File

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