summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2016-08-04 11:52:18 -0700
committerTony Wickham <twickham@google.com>2016-08-04 11:52:18 -0700
commit98cbd62e1f6d57ccef1758fb82dd245f7354fb73 (patch)
tree0c3ce2d045b92b9cbcfb44026cd292f2bc7c1363 /src/com/android/launcher3/dragndrop
parent5a5eb846c410c6ed6c1c0fb01edf82e118c35830 (diff)
downloadandroid_packages_apps_Trebuchet-98cbd62e1f6d57ccef1758fb82dd245f7354fb73.tar.gz
android_packages_apps_Trebuchet-98cbd62e1f6d57ccef1758fb82dd245f7354fb73.tar.bz2
android_packages_apps_Trebuchet-98cbd62e1f6d57ccef1758fb82dd245f7354fb73.zip
Reset mActiveController to null in DragLayer.onInterceptTouchEvent().
Otherwise the previous active controller will continue to handle touch events even if it doesn't re-intercept future touches. For instance, All Apps was handling the swipe gesture after DragLayer intercepted to close a shortcuts container, which led to the weird behavior described in the bug. Bug: 30590854 Change-Id: I247b39b03d336a04659f6ce644380bf3cef8de3f
Diffstat (limited to 'src/com/android/launcher3/dragndrop')
-rw-r--r--src/com/android/launcher3/dragndrop/DragLayer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragLayer.java b/src/com/android/launcher3/dragndrop/DragLayer.java
index 3300b7699..448f70943 100644
--- a/src/com/android/launcher3/dragndrop/DragLayer.java
+++ b/src/com/android/launcher3/dragndrop/DragLayer.java
@@ -295,6 +295,8 @@ public class DragLayer extends InsettableFrameLayout {
}
clearAllResizeFrames();
+ mActiveController = null;
+
if (mDragController.onInterceptTouchEvent(ev)) {
mActiveController = mDragController;
return true;