diff options
author | Linus Lee <llee@cyngn.com> | 2015-03-30 18:06:29 -0700 |
---|---|---|
committer | niks255 <niks255@mail.ru> | 2017-01-07 04:39:45 +0600 |
commit | 5586206b751f24ae9bbb96dbdc779ae98f9f9919 (patch) | |
tree | 1b93463e8360ab4bb5ad9636db53ab8d26150b15 | |
parent | 9bf1f0710e662f925a4f9dbdb38e81f599bab891 (diff) | |
download | android_packages_apps_Trebuchet-5586206b751f24ae9bbb96dbdc779ae98f9f9919.tar.gz android_packages_apps_Trebuchet-5586206b751f24ae9bbb96dbdc779ae98f9f9919.tar.bz2 android_packages_apps_Trebuchet-5586206b751f24ae9bbb96dbdc779ae98f9f9919.zip |
Trebuchet: Fix bad ui state when backing twice quickly
If a user enters the widget add screen and quickly backs up
twice, the widget panel stays around and captures touch, but
the ui thinks it is in the homescreen.
Change-Id: I52a920fd633f3ab690ca1c959fbc8935c2d0bb69
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 1eb21593c..d9a4419ca 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2819,6 +2819,14 @@ public class Launcher extends Activity } else if (f2 != null) { mDynamicGridSizeFragment.setSize(); } else { + // if a user backs up twice very quickly from the widget add screen to the + // homescreen, the UI can get into a messed up state and mStateAnimation never + // completes or gets cancelled. Cancelling mStateAnimation here fixes this bug + if (mStateAnimation != null && mStateAnimation.isRunning()) { + mStateAnimation.cancel(); + mStateAnimation = null; + } + mWorkspace.exitOverviewMode(true); } } else if (mWorkspace.getOpenFolder() != null) { |