Fixed problem where scrim transition would be cancelled
Change-Id: I089e499bfaf524898f5156aecaf098c94b9a1b2b Fixes: 64077859 Test: send notifications, look at AoD
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user