Merge "Determine if the activity is the topmost one" into rvc-dev am: b4d5aef6b0
Change-Id: Ia211070b68bd04b256384618db989abcaadefd02
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user