We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4ef5a3 + fed4a55 commit 639421cCopy full SHA for 639421c
1 file changed
services/core/java/com/android/server/DockObserver.java
@@ -201,9 +201,6 @@ private void handleDockStateChange() {
201
// There are many components in the system watching for this so as to
202
// adjust audio routing, screen orientation, etc.
203
getContext().sendStickyBroadcastAsUser(intent, UserHandle.ALL);
204
-
205
- // Release the wake lock that was acquired when the message was posted.
206
- mWakeLock.release();
207
}
208
209
@@ -213,6 +210,7 @@ public void handleMessage(Message msg) {
213
210
switch (msg.what) {
214
211
case MSG_DOCK_STATE_CHANGED:
215
212
handleDockStateChange();
+ mWakeLock.release();
216
break;
217
218
0 commit comments