Forcefully finish recents animations when launcher is detroyed
If launcher is destroyed while the recents animation start is pending, then the taskanimationmanager and absswipeuphandler states are not properly cleaned up. Adding a new cleanup flow to handle this case. Flag: EXEMPT bug fix Fixes: 405642423 Test: adb shell cmd uimode night yes/no while TaskAnimationManager.mRecentsAnimationStartPending == true Change-Id: I7bf1fc4fc07859f92d7aec6cd78deafa1214dd17
This commit is contained in:
1 parent
95dc69f7ce
commit
8d72503263
4 files changed
+116
-15
No files matched your search
@@ -570,4 +570,13 @@ public class ActiveGestureProtoLogProxy {
|
||||
"OtherActivityInputConsumer.startTouchTrackingForWindowAnimation: "
|
||||
+ "interactionHandler=%s", interactionHandler);
|
||||
}
|
||||
|
||||
public static void logQueuingForceFinishRecentsAnimation() {
|
||||
ActiveGestureLog.INSTANCE.addLog("Launcher destroyed while mRecentsAnimationStartPending =="
|
||||
+ " true, queuing a callback to clean the pending animation up on start",
|
||||
/* gestureEvent= */ ON_START_RECENTS_ANIMATION);
|
||||
if (!enableActiveGestureProtoLog() || !isProtoLogInitialized()) return;
|
||||
ProtoLog.d(ACTIVE_GESTURE_LOG, "Launcher destroyed while mRecentsAnimationStartPending =="
|
||||
+ " true, queuing a callback to clean the pending animation up on start");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user