summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2018-04-26 00:44:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-04-26 00:44:45 +0000
commit7a0e965c4f5bd0029248cd2c726fc84d19f31c15 (patch)
treea76253aa89f024cddd615ecfd6e2552407fad947
parent87249707a50cad1566524c93e2537fb92ec40ead (diff)
parent4923c0557ffa5503741e1a5a0fa3accbbedc3dd1 (diff)
downloadpackages_apps_Trebuchet-7a0e965c4f5bd0029248cd2c726fc84d19f31c15.tar.gz
packages_apps_Trebuchet-7a0e965c4f5bd0029248cd2c726fc84d19f31c15.tar.bz2
packages_apps_Trebuchet-7a0e965c4f5bd0029248cd2c726fc84d19f31c15.zip
Merge "Don't animate hotseat when launching if swipe up disabled" into ub-launcher3-edmonton
-rw-r--r--quickstep/src/com/android/quickstep/views/LauncherRecentsView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
index d69beb6a5..90749eb95 100644
--- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
@@ -35,6 +35,7 @@ import android.view.ViewDebug;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherState;
+import com.android.quickstep.OverviewInteractionState;
import com.android.quickstep.util.LayoutUtils;
/**
@@ -118,6 +119,12 @@ public class LauncherRecentsView extends RecentsView<Launcher> {
public AnimatorSet createAdjacentPageAnimForTaskLaunch(TaskView tv) {
AnimatorSet anim = super.createAdjacentPageAnimForTaskLaunch(tv);
+ if (!OverviewInteractionState.getInstance(mActivity).isSwipeUpGestureEnabled()) {
+ // Hotseat doesn't move when opening recents with the button,
+ // so don't animate it here either.
+ return anim;
+ }
+
float allAppsProgressOffscreen = ALL_APPS_PROGRESS_OFF_SCREEN;
LauncherState state = mActivity.getStateManager().getState();
if ((state.getVisibleElements(mActivity) & ALL_APPS_HEADER_EXTRA) != 0) {