Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99e1677e authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Flag guard additional reads of mGoingAwayRequestedForUserId, since this value...

Flag guard additional reads of mGoingAwayRequestedForUserId, since this value is not set with the refactor enabled.

Flag: com.android.systemui.keyguard_wm_state_refactor
Bug: 278086361
Test: unlock with flag enabled
Change-Id: I7980a7d12d5f376737e54f82f06f9363a78f8bc8
parent 4ce43367
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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());