Merge "Cancel unocclude animation on main thread" into tm-qpr-dev am: ac8ef32b22 am: 66e7b80e89

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20129961

Change-Id: I46aabfe86b234331be8e665737494519474cf2d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Winson Chung
2022-10-07 13:58:21 +00:00
committed by Automerger Merge Worker

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: "