* commit '6abed0706be80764c4cffe46fcb8e01ec8d9be95': Fix wakelock leak for dozing
This commit is contained in:
@@ -256,6 +256,8 @@ public class DozeService extends DreamService {
|
||||
|
||||
private void continuePulsing(int reason) {
|
||||
if (mHost.isPulsingBlocked()) {
|
||||
mPulsing = false;
|
||||
mWakeLock.release();
|
||||
return;
|
||||
}
|
||||
mHost.pulseWhileDozing(new DozeHost.PulseCallback() {
|
||||
|
||||
@@ -104,13 +104,11 @@ public class DozeScrimController {
|
||||
* Aborts pulsing immediately.
|
||||
*/
|
||||
public void abortPulsing() {
|
||||
mHandler.removeCallbacks(mPulseIn);
|
||||
abortAnimations();
|
||||
cancelPulsing();
|
||||
if (mDozing) {
|
||||
mScrimController.setDozeBehindAlpha(1f);
|
||||
mScrimController.setDozeInFrontAlpha(1f);
|
||||
}
|
||||
mPulseCallback = null;
|
||||
}
|
||||
|
||||
public void onScreenTurnedOn() {
|
||||
|
||||
Reference in New Issue
Block a user