Cancel launcher app transition when changing states
The app transition might change an object that the new state depends on, causing an inconsistent state. Bug: 72816542 Change-Id: Ia6dd52971b52be5589c88f4f6d93d06146fbadab
This commit is contained in:
1 parent
9c70e7e220
commit
dc76f8e856
4 files changed
+23
-5
No files matched your search
@@ -269,6 +269,13 @@ public class LauncherStateManager {
|
||||
// Only disable clipping if needed, otherwise leave it as previous value.
|
||||
mLauncher.getWorkspace().setClipChildren(false);
|
||||
}
|
||||
|
||||
// If we are still animating to launcher from an app,
|
||||
// finish it and let this state animation take over.
|
||||
LauncherAppTransitionManager transitionManager = mLauncher.getAppTransitionManager();
|
||||
if (transitionManager != null) {
|
||||
transitionManager.finishAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
private void onStateTransitionEnd(LauncherState state) {
|
||||
|
||||
Reference in new issue
Block a user