summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2015-11-19 12:45:30 -0800
committerTony Wickham <twickham@google.com>2015-11-19 12:45:30 -0800
commita5209e33fcce5cd429086971ef1b57bcfc106c23 (patch)
treed0347da6338b9f5afdf62c0314863672cb7fa055 /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parenta43f78fc4b70bf54b9c90758660b6155ef0257aa (diff)
downloadandroid_packages_apps_Trebuchet-a5209e33fcce5cd429086971ef1b57bcfc106c23.tar.gz
android_packages_apps_Trebuchet-a5209e33fcce5cd429086971ef1b57bcfc106c23.tar.bz2
android_packages_apps_Trebuchet-a5209e33fcce5cd429086971ef1b57bcfc106c23.zip
Disallow scrolling if workspace is in transition.
Because going to overview mode scales down the workspace, it was thinking the touch was moving even though your finger was still. If the "movement" was large enough, it was treated as a scroll, causing jank. This was especially prevalent on tablets due to their size. Bug: 25779718 Change-Id: Idb7833e0087bd24ca840f6afc451bf221f6bc047
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 3391d06c1..83b12a99d 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -641,11 +641,11 @@ public class LauncherStateTransitionAnimation {
}
animation.play(reveal);
}
-
- dispatchOnLauncherTransitionPrepare(fromView, animated, true);
- dispatchOnLauncherTransitionPrepare(toView, animated, true);
}
+ dispatchOnLauncherTransitionPrepare(fromView, animated, true);
+ dispatchOnLauncherTransitionPrepare(toView, animated, true);
+
animation.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {