am 06a86644: Merge "Fix wakelock leak for dozing" into mnc-dr-dev
* commit '06a86644cca0621696afc38db02f2fe2010f120c': 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