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
This commit is contained in:
@@ -987,9 +987,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: "
|
||||
|
||||
Reference in New Issue
Block a user