OSDN Git Service

Ensure wakelock is released unconditionally.
authorJeff Brown <jeffbrown@google.com>
Tue, 23 Sep 2014 05:30:22 +0000 (22:30 -0700)
committerJeff Brown <jeffbrown@google.com>
Tue, 23 Sep 2014 16:38:04 +0000 (09:38 -0700)
Bug: 17610254
Change-Id: I8b846c867edaa5038e34d4c857550735b121a1d9

packages/SystemUI/src/com/android/systemui/doze/DozeService.java

index b07e993..6cc890b 100644 (file)
@@ -199,8 +199,8 @@ public class DozeService extends DreamService {
                     if (mPulsing && mDreaming) {
                         mPulsing = false;
                         turnDisplayOff();
-                        mWakeLock.release();
                     }
+                    mWakeLock.release(); // needs to be unconditional to balance acquire
                 }
             });
         }