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

Commit a6de6777 authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am 7143b71c: Merge "Make the \'locked\' lock task not lock keyguard on exit" into lmp-dev

* commit '7143b71c9daf0ed4e73eabd190a445f14d9eafc0':
  Make the 'locked' lock task not lock keyguard on exit
parents 7c7c4484 8ed4d5ac
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3284,10 +3284,11 @@ public final class ActivityStackSupervisor implements DisplayListener {
                            mLockTaskNotify = new LockTaskNotify(mService.mContext);
                        }
                        mLockTaskNotify.show(true);
                        mLockTaskIsLocked = msg.arg2 == 0;
                        if (getStatusBarService() != null) {
                            int flags =
                                    StatusBarManager.DISABLE_MASK ^ StatusBarManager.DISABLE_BACK;
                            if (msg.arg2 != 0) {
                            if (!mLockTaskIsLocked) {
                                flags ^= StatusBarManager.DISABLE_HOME
                                        | StatusBarManager.DISABLE_RECENT;
                            }
@@ -3323,7 +3324,7 @@ public final class ActivityStackSupervisor implements DisplayListener {
                            boolean shouldLockKeyguard = Settings.System.getInt(
                                    mService.mContext.getContentResolver(),
                                    Settings.System.LOCK_TO_APP_EXIT_LOCKED) != 0;
                            if (shouldLockKeyguard) {
                            if (!mLockTaskIsLocked && shouldLockKeyguard) {
                                mWindowManager.lockNow(null);
                                mWindowManager.dismissKeyguard();
                            }