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

Commit 4bf36c3e authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 8222f04e: am 0bc0f109: Merge "audioservice: always acquire wake lock as...

am 8222f04e: am 0bc0f109: Merge "audioservice: always acquire wake lock as AudioService" into klp-dev

* commit '8222f04e':
  audioservice: always acquire wake lock as AudioService
parents 3b4e322b 8222f04e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -2687,7 +2687,11 @@ public class AudioService extends IAudioService.Stub {
     */
     */
    private void queueMsgUnderWakeLock(Handler handler, int msg,
    private void queueMsgUnderWakeLock(Handler handler, int msg,
            int arg1, int arg2, Object obj, int delay) {
            int arg1, int arg2, Object obj, int delay) {
        final long ident = Binder.clearCallingIdentity();
        // Always acquire the wake lock as AudioService because it is released by the
        // message handler.
        mAudioEventWakeLock.acquire();
        mAudioEventWakeLock.acquire();
        Binder.restoreCallingIdentity(ident);
        sendMsg(handler, msg, SENDMSG_QUEUE, arg1, arg2, obj, delay);
        sendMsg(handler, msg, SENDMSG_QUEUE, arg1, arg2, obj, delay);
    }
    }