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

Commit f129859e authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Suppress screen lock sound effect on first boot.

Bug: 2453032
parent 015398f3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
    private IBinder mSecureLockIcon = null;

    private boolean mSystemReady;
    private boolean mFirstShow = true;

    /** Low level access to the power manager for enableUserActivity.  Having this
     * requires that we run in the system process.  */
@@ -946,7 +947,11 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
            if (DEBUG) Log.d(TAG, "handleShow");
            if (!mSystemReady) return;

            if (mFirstShow) {
                mFirstShow = false;
            } else {
                playSounds(true);
            }

            mKeyguardViewManager.show();
            mShowing = true;