Fixed problem where scrim transition would be cancelled

Change-Id: I089e499bfaf524898f5156aecaf098c94b9a1b2b
Fixes: 64077859
Test: send notifications, look at AoD
This commit is contained in:
Lucas Dupin
2017-10-10 17:31:09 -07:00
parent 2d362d7159
commit 5909d0134d
3 changed files with 2 additions and 5 deletions

View File

@@ -84,9 +84,6 @@ public class DozeUi implements DozeMachine.Part {
case DOZE_REQUEST_PULSE:
pulseWhileDozing(mMachine.getPulseReason());
break;
case DOZE_PULSE_DONE:
mHost.abortPulsing();
break;
case INITIALIZED:
mHost.startDozing();
break;

View File

@@ -384,7 +384,7 @@ public class DozeScrimController {
if (mDozeParameters.getAlwaysOn()) {
// Setting power states can happen after we push out the frame. Make sure we
// stay fully opaque until the power state request reaches the lower levels.
setDozeInFrontAlphaDelayed(mAodFrontScrimOpacity, 30);
setDozeInFrontAlphaDelayed(mAodFrontScrimOpacity, 100);
}
}
};

View File

@@ -23,7 +23,7 @@ import android.os.Handler;
*/
public class DelayedWakeLock implements WakeLock {
private static final long RELEASE_DELAY_MS = 100;
private static final long RELEASE_DELAY_MS = 120;
private final Handler mHandler;
private final WakeLock mInner;