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