summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/touch
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2019-07-11 16:55:01 -0700
committerTony Wickham <twickham@google.com>2019-07-11 16:55:01 -0700
commite1463f5580ed46a37816e586f75eab697d4c3a7b (patch)
tree2e0ab55299e2396195b3b6df6c20df9ce9db27ff /src/com/android/launcher3/touch
parent59b5b3f2a2d97e3652ecd8d19090262c9d4fc11c (diff)
downloadandroid_packages_apps_Trebuchet-e1463f5580ed46a37816e586f75eab697d4c3a7b.tar.gz
android_packages_apps_Trebuchet-e1463f5580ed46a37816e586f75eab697d4c3a7b.tar.bz2
android_packages_apps_Trebuchet-e1463f5580ed46a37816e586f75eab697d4c3a7b.zip
Defer jumping to NORMAL state if overview is still peeking
Bug: 137316430 Change-Id: I1ace19bb229d07bd9dfe5ed6f60c63715b9f8cf2
Diffstat (limited to 'src/com/android/launcher3/touch')
-rw-r--r--src/com/android/launcher3/touch/AbstractStateChangeTouchController.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java
index 7252410e0..ae69f3b32 100644
--- a/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java
+++ b/src/com/android/launcher3/touch/AbstractStateChangeTouchController.java
@@ -31,7 +31,6 @@ import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
import android.os.SystemClock;
-import android.util.Log;
import android.view.HapticFeedbackConstants;
import android.view.MotionEvent;
@@ -43,7 +42,6 @@ import com.android.launcher3.Utilities;
import com.android.launcher3.anim.AnimationSuccessListener;
import com.android.launcher3.anim.AnimatorPlaybackController;
import com.android.launcher3.anim.AnimatorSetBuilder;
-import com.android.launcher3.testing.TestProtocol;
import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction;
import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch;
@@ -513,11 +511,15 @@ public abstract class AbstractStateChangeTouchController
shouldGoToTargetState = !reachedTarget;
}
if (shouldGoToTargetState) {
- if (targetState != mStartState) {
- logReachedState(logAction, targetState);
- }
- mLauncher.getStateManager().goToState(targetState, false /* animated */);
+ goToTargetState(targetState, logAction);
+ }
+ }
+
+ protected void goToTargetState(LauncherState targetState, int logAction) {
+ if (targetState != mStartState) {
+ logReachedState(logAction, targetState);
}
+ mLauncher.getStateManager().goToState(targetState, false /* animated */);
}
private void logReachedState(int logAction, LauncherState targetState) {