diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-03-09 17:41:09 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-03-13 09:20:00 -0700 |
commit | 4846193300245c8c0a1f9bde3175f273df044309 (patch) | |
tree | 8c7cb51bf87619cfa6b97bb5be01baffa1bb82f4 /src/com/android/launcher3/DragController.java | |
parent | d3570ec81cbad683f66f987849939afdf860db87 (diff) | |
download | android_packages_apps_Trebuchet-4846193300245c8c0a1f9bde3175f273df044309.tar.gz android_packages_apps_Trebuchet-4846193300245c8c0a1f9bde3175f273df044309.tar.bz2 android_packages_apps_Trebuchet-4846193300245c8c0a1f9bde3175f273df044309.zip |
Scrolling folder during drag-drop
> Show a scroll hint (partial scroll) when the icon is over the last icon (some fraction)
> Automatically scroll the folder if the user stays in that position for some time
> Rearrance the icons on the new page only after the scroll animaiton is complete
Change-Id: I7a2dd85ab23802d647801686df069975d197cd39
Diffstat (limited to 'src/com/android/launcher3/DragController.java')
-rw-r--r-- | src/com/android/launcher3/DragController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/DragController.java b/src/com/android/launcher3/DragController.java index 09c59a057..8dc6e185c 100644 --- a/src/com/android/launcher3/DragController.java +++ b/src/com/android/launcher3/DragController.java @@ -49,8 +49,8 @@ public class DragController { /** Indicates the drag is a copy. */ public static int DRAG_ACTION_COPY = 1; - private static final int SCROLL_DELAY = 500; - private static final int RESCROLL_DELAY = PagedView.PAGE_SNAP_ANIMATION_DURATION + 150; + public static final int SCROLL_DELAY = 500; + public static final int RESCROLL_DELAY = PagedView.PAGE_SNAP_ANIMATION_DURATION + 150; private static final boolean PROFILE_DRAWING_DURING_DRAG = false; |