summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop/DragController.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-09-23 11:01:10 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-09-23 16:02:49 -0700
commit6ad72f02fd233f2294222477102e83d721100493 (patch)
treeac28c5bebd8667249545b8829ec9e3332040fcbb /src/com/android/launcher3/dragndrop/DragController.java
parentf09bfab404fa0118a6c3cb6a317edaab3907eb0b (diff)
downloadandroid_packages_apps_Trebuchet-6ad72f02fd233f2294222477102e83d721100493.tar.gz
android_packages_apps_Trebuchet-6ad72f02fd233f2294222477102e83d721100493.tar.bz2
android_packages_apps_Trebuchet-6ad72f02fd233f2294222477102e83d721100493.zip
Resize only one widget at a time
> Removing logic to have multiple widgets in resize mode > Making ResizeFrame a touch controller, so that it fits well with other touch interaction in drag layer > Chaning the method names in touch controller, so that it do not overlaps with the default View methods Change-Id: I85d4dbdfc82d078781adbce137dfaaea59c9c83d
Diffstat (limited to 'src/com/android/launcher3/dragndrop/DragController.java')
-rw-r--r--src/com/android/launcher3/dragndrop/DragController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragController.java b/src/com/android/launcher3/dragndrop/DragController.java
index a93ee9019..77a957ac7 100644
--- a/src/com/android/launcher3/dragndrop/DragController.java
+++ b/src/com/android/launcher3/dragndrop/DragController.java
@@ -439,7 +439,7 @@ public class DragController implements DragDriver.EventListener, TouchController
/**
* Call this from a drag source view.
*/
- public boolean onInterceptTouchEvent(MotionEvent ev) {
+ public boolean onControllerInterceptTouchEvent(MotionEvent ev) {
if (mOptions != null && mOptions.isAccessibleDrag) {
return false;
}
@@ -582,7 +582,7 @@ public class DragController implements DragDriver.EventListener, TouchController
/**
* Call this from a drag source view.
*/
- public boolean onTouchEvent(MotionEvent ev) {
+ public boolean onControllerTouchEvent(MotionEvent ev) {
if (mDragDriver == null || mOptions == null || mOptions.isAccessibleDrag) {
return false;
}