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

Commit b6f13b6e authored by Dan Pasanen's avatar Dan Pasanen Committed by Gerrit Code Review
Browse files

KeyguardViewMediator: Play lock screen sound sooner

When the screen is locked, there is a long pause before the lock
sound actually plays.

This makes that sound happen much sooner.

Also modified Lock.ogg slightly to remove the initial silence.

Change-Id: Iede7a5d22291d1ada98800d2b380c255547df61d
parent 1ebb27e8
Loading
Loading
Loading
Loading
+828 B (5.36 KiB)

File changed.

No diff preview for this file type.

+6 −3
Original line number Diff line number Diff line
@@ -1276,6 +1276,12 @@ public class KeyguardViewMediator {
            if (DEBUG) Log.d(TAG, "handleShow");
            if (!mSystemReady) return;

            new Thread(new Runnable() {
                public void run() {
                    playSounds(true);
                }
            }).start();

            mKeyguardViewManager.show(options);
            mShowing = true;
            mKeyguardDonePending = false;
@@ -1287,9 +1293,6 @@ public class KeyguardViewMediator {
            } catch (RemoteException e) {
            }

            // Do this at the end to not slow down display of the keyguard.
            playSounds(true);

            mShowKeyguardWakeLock.release();
        }
    }