OSDN Git Service

Doze: Fix broken non-AoD
authorAdrian Roos <roosa@google.com>
Thu, 3 Nov 2016 19:11:11 +0000 (12:11 -0700)
committerAdrian Roos <roosa@google.com>
Thu, 3 Nov 2016 19:26:45 +0000 (12:26 -0700)
Fixes a bug where non-AoD doze mode
was broken.

Test: adb shell settings put secure doze_always_on 0 && echo "Test that double-tap / pickup gestures work"
Change-Id: If2720eea5081fb9f88bfe0346ec829b241532b29

packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeScrimController.java

index b141454..01ffe01 100644 (file)
@@ -105,9 +105,7 @@ public class DozeScrimController {
         // be invoked when we're done so that the caller can drop the pulse wakelock.
         mPulseCallback = callback;
         mPulseReason = reason;
-        if (mDozeParameters.getAlwaysOn()) {
-            mHandler.post(mPulseIn);
-        }
+        mHandler.post(mPulseIn);
     }
 
     /**