Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b04a06e authored by Winson Chung's avatar Winson Chung
Browse files

Cancel unocclude animation on main thread

- It throws an exception since it's not being called on a looper thread

Bug: 251481696
Test: atest SystemUITests
Change-Id: I407bbcc2824ef4d6130c269551a6e0e7995896d7
parent ddc26a33
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -987,9 +987,11 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,

                @Override
                public void onAnimationCancelled(boolean isKeyguardOccluded) {
                    mContext.getMainExecutor().execute(() -> {
                        if (mUnoccludeAnimator != null) {
                            mUnoccludeAnimator.cancel();
                        }
                    });

                    setOccluded(isKeyguardOccluded /* isOccluded */, false /* animate */);
                    Log.d(TAG, "Unocclude animation cancelled. Occluded state is now: "