Fixes:
69901116
Fixes:
70296214
Test: Double tap power button to launch camera
Test: Unlock with fingerprint, pin, SmartLock
Test: Unlock with fingerprint while changing brightness
Test: Unlock by tapping notification
Change-Id: I487b29c3aa5460cbd120072becb4e0449cffcce6
throw new IllegalArgumentException("Cannot change to UNINITIALIZED.");
}
+ final ScrimState oldState = mState;
+ mState = state;
+
if (mCallback != null) {
mCallback.onCancelled();
}
mCallback = callback;
- state.prepare(mState);
+ state.prepare(oldState);
mScreenBlankingCallbackCalled = false;
mAnimationDelay = 0;
mBlankScreen = state.getBlanksScreen();
mKeyguardFadeoutAnimation.cancel();
}
- mState = state;
-
// Do not let the device sleep until we're done with all animations
if (!mWakeLockHeld) {
if (mWakeLock != null) {
mCurrentInFrontAlpha = 0;
}
} else {
- Log.w(TAG, "Invalid state, cannot set panel expansion when: " + mState);
return;
}
@Override
public void onCancelled() {
- // Transition was cancelled because another one took over.
- // Nothing to do in here but wait.
+ onFinished();
}
};