summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-07-27 10:55:51 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-07-27 10:55:51 -0700
commit9dcf0a3ef7595f58aedec7773e7bc3b9075fb3ca (patch)
tree1090de98d9913bcca8c7eae3eeeb7d41873f93f2 /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parent10717bfcae5fc6d34818f09d4f2ce584222cdba0 (diff)
downloadandroid_packages_apps_Trebuchet-9dcf0a3ef7595f58aedec7773e7bc3b9075fb3ca.tar.gz
android_packages_apps_Trebuchet-9dcf0a3ef7595f58aedec7773e7bc3b9075fb3ca.tar.bz2
android_packages_apps_Trebuchet-9dcf0a3ef7595f58aedec7773e7bc3b9075fb3ca.zip
AllAppsTransitionController always use LauncherStateTransitionAnimation
b/30375760 Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 1fe0813e1..9cb842742 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -207,7 +207,8 @@ public class LauncherStateTransitionAnimation {
Log.e(TAG, "Unexpected call to startAnimationToWorkspace");
}
- if (fromState == Launcher.State.APPS || fromState == Launcher.State.APPS_SPRING_LOADED) {
+ if (fromState == Launcher.State.APPS || fromState == Launcher.State.APPS_SPRING_LOADED
+ || mAllAppsController.isTransitioning()) {
int animType = CIRCULAR_REVEAL;
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
animType = PULLUP;
@@ -434,7 +435,7 @@ public class LauncherStateTransitionAnimation {
pCb.onTransitionComplete();
}
});
- mAllAppsController.animateToAllApps(animation, revealDuration, false);
+ mAllAppsController.animateToAllApps(animation, revealDuration);
dispatchOnLauncherTransitionPrepare(fromView, animated, false);
dispatchOnLauncherTransitionPrepare(toView, animated, false);
@@ -898,9 +899,8 @@ public class LauncherStateTransitionAnimation {
@Override
public void onAnimationEnd(Animator animation) {
if (canceled) return;
- dispatchOnLauncherTransitionEnd(fromView, animated, false);
- dispatchOnLauncherTransitionEnd(toView, animated, false);
-
+ dispatchOnLauncherTransitionEnd(fromView, animated, true);
+ dispatchOnLauncherTransitionEnd(toView, animated, true);
// Run any queued runnables
if (onCompleteRunnable != null) {
onCompleteRunnable.run();
@@ -918,7 +918,7 @@ public class LauncherStateTransitionAnimation {
}
});
- mAllAppsController.animateToWorkspace(animation, revealDuration, false);
+ mAllAppsController.animateToWorkspace(animation, revealDuration);
// Dispatch the prepare transition signal
dispatchOnLauncherTransitionPrepare(fromView, animated, multiplePagesVisible);