Merge "Cancel unocclude animation on main thread" into tm-qpr-dev

This commit is contained in:
Winson Chung
2022-10-07 06:36:45 +00:00
committed by Android (Google) Code Review

View File

@@ -983,9 +983,11 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
@Override
public void onAnimationCancelled(boolean isKeyguardOccluded) {
if (mUnoccludeAnimator != null) {
mUnoccludeAnimator.cancel();
}
mContext.getMainExecutor().execute(() -> {
if (mUnoccludeAnimator != null) {
mUnoccludeAnimator.cancel();
}
});
setOccluded(isKeyguardOccluded /* isOccluded */, false /* animate */);
Log.d(TAG, "Unocclude animation cancelled. Occluded state is now: "