diff options
author | Vadim Tryshev <vadimt@google.com> | 2015-07-08 13:40:14 -0700 |
---|---|---|
committer | Vadim Tryshev <vadimt@google.com> | 2015-07-30 13:06:25 -0700 |
commit | d6c8e7eeb13094ea1349897663ae28d8a3bf2773 (patch) | |
tree | b16f5c30f643136be27736847372fb50fd38d41a /src/com/android/launcher3/ItemInfo.java | |
parent | 1992d126f41268b8d55313d6de4d97ed05382cbf (diff) | |
download | android_packages_apps_Trebuchet-d6c8e7eeb13094ea1349897663ae28d8a3bf2773.tar.gz android_packages_apps_Trebuchet-d6c8e7eeb13094ea1349897663ae28d8a3bf2773.tar.bz2 android_packages_apps_Trebuchet-d6c8e7eeb13094ea1349897663ae28d8a3bf2773.zip |
Code to enable dragging to System UI shelf.
This CL doesn’t let the new code run, it’s under a compile-time flag,
and the behavior should be same as before.
The change introduces a concept of a DragDriver, which encapsulates
behavior of the existing DND (InternalDragDriver) or the framework-
driven DND (SystemDragDriver).
An instance of DragDriver gets created by DragController for the time
while a DND operation is in progress, and it takes care of translating
DND events for DragController.
Also did some cleanups, like removing meaningless fields etc.
Plans for future: keep working in Burnaby, and:
* Perhaps, better separate DragDriver from DragController
* Detect fling gesture for system DND
* Look at accessibility
* Polish animations and appearance
* Fix dragging from folders
* Support cancelling DND
Then, it will become possible to enable new dragging (based on Android
version).
Bug: 22028725
Change-Id: I41b40e9d512d83937f5b101ac8e3e8e7e807c269
Diffstat (limited to 'src/com/android/launcher3/ItemInfo.java')
-rw-r--r-- | src/com/android/launcher3/ItemInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/ItemInfo.java b/src/com/android/launcher3/ItemInfo.java index 4bc501987..956bb8c75 100644 --- a/src/com/android/launcher3/ItemInfo.java +++ b/src/com/android/launcher3/ItemInfo.java @@ -134,7 +134,7 @@ public class ItemInfo { } public Intent getIntent() { - throw new RuntimeException("Unexpected Intent"); + return null; } /** |