summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-31 04:34:24 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-01-31 04:34:24 -0800
commit5885caada11a09067fd1c598d73f0c2ee6fda25e (patch)
treeafba1dcb41cd5431ee6948ecd1688b0249481091
parent5382583e9779a1596256bebec13789f547092c55 (diff)
parent99e1677ee0789b5a01ce3c0a905b43444b3afc6e (diff)
Merge "Flag guard additional reads of mGoingAwayRequestedForUserId, since this value is not set with the refactor enabled." into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index 7fed7d253efe..fd50485fc3a3 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -3249,7 +3249,7 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
Log.d(TAG, "handleStartKeyguardExitAnimation startTime=" + startTime
+ " fadeoutDuration=" + fadeoutDuration);
int currentUserId = mSelectedUserInteractor.getSelectedUserId();
- if (mGoingAwayRequestedForUserId != currentUserId) {
+ if (!KeyguardWmStateRefactor.isEnabled() && mGoingAwayRequestedForUserId != currentUserId) {
Log.e(TAG, "Not executing handleStartKeyguardExitAnimationInner() due to userId "
+ "mismatch. Requested: " + mGoingAwayRequestedForUserId + ", current: "
+ currentUserId);
@@ -3516,7 +3516,8 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
* app transition before finishing the current RemoteAnimation, or the keyguard being re-shown).
*/
private void handleCancelKeyguardExitAnimation() {
- if (mGoingAwayRequestedForUserId != mSelectedUserInteractor.getSelectedUserId()) {
+ if (!KeyguardWmStateRefactor.isEnabled()
+ && mGoingAwayRequestedForUserId != mSelectedUserInteractor.getSelectedUserId()) {
Log.e(TAG, "Setting pendingLock = true due to userId mismatch. Requested: "
+ mGoingAwayRequestedForUserId + ", current: "
+ mSelectedUserInteractor.getSelectedUserId());