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

Commit 639421cb authored by Prashant Malani's avatar Prashant Malani Committed by Android Git Automerger
Browse files

am fed4a556: Merge "Move wakelock release to handleMessage" into klp-modular-dev

* commit 'fed4a556':
  Move wakelock release to handleMessage
parents a4ef5a3a fed4a556
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -201,9 +201,6 @@ final class DockObserver extends SystemService {
            // There are many components in the system watching for this so as to
            // adjust audio routing, screen orientation, etc.
            getContext().sendStickyBroadcastAsUser(intent, UserHandle.ALL);

            // Release the wake lock that was acquired when the message was posted.
            mWakeLock.release();
        }
    }

@@ -213,6 +210,7 @@ final class DockObserver extends SystemService {
            switch (msg.what) {
                case MSG_DOCK_STATE_CHANGED:
                    handleDockStateChange();
                    mWakeLock.release();
                    break;
            }
        }