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

* commit '639421cbd9780b9093bdf3415a79489c118ecb92':
  Move wakelock release to handleMessage
This commit is contained in:
Prashant Malani
2014-08-07 22:15:01 +00:00
committed by Android Git Automerger

View File

@@ -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;
}
}