Determine if the activity is the topmost one
ActivityStack#mTopActivityOccludesKeyguard may be incorrectly updated by a non-top activity. Bug: 149837574 Test: start emergency dialer from lockscreen Change-Id: I830e572f008cbebb95f0d76416c70d948063dd97
This commit is contained in:
@@ -7355,7 +7355,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