History log of /packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1797af41d162413dc98c33fab8ba19f96b63874b 06-Oct-2017 Sunny Goyal <sunnygoyal@google.com> Cleaning up drag state management.

When the drag is started, the UI automatically goes into spring loaded mode. On a successful
drop, it is the responsibility of the {@link DropTarget} to exit out of the spring loaded
mode. If the drop was cancelled for some reason, the UI will automatically exit out of this mode.

Bug: 34692289
Change-Id: Ic611739a43bb8d9279b587aaee3039326c143e8b
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
3dce5f3f507d0fbd27ab9c62ad66e0259abf22b3 05-Oct-2017 Sunny Goyal <sunnygoyal@google.com> Merging duplicate logic for deferred drop handling in Worksace and Folder

> All the logic is contained in UninstallDropTarget
> Also fixing a bug were mWaitingForResume was not cleared

Bug: 34692289
Change-Id: I617475ce53062902d6817954fb608198e6e03d3c
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
0f76b56865bd7b63bd21d53aaac47300396aa38f 14-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring FlingToDelete

> Moving all fling related logic to FlingToDeleteHelper from DragController
> Removing fling related methods from DragSource and DropTarget
> Moving fling animation logic from DeleteDropTarget to FlingAnimation
> Simplifying DropTargetBar to directly look for all valid drop targets.
This makes it easier to add new DropTarget in xml.

Change-Id: I7214d2d30c907ab93c80d92d9f9be6dda2d63354
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
0de011705b132eacdd10f7bfb5cdc4bd79a147e8 06-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Code sanitization

- Removed bad method/class name typos

Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
59a238095e82fd02355f4cb53abe01655a50b051 01-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Support user event logging for drag and drop
b/30039490

Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging

Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
9eba1fd75e9fa6b0dc5cad9a4e817b3b167d2461 16-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
9d4380856ff41ecb26c0d5aee1747b6060d2ef0e 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for e78e3d73 to ub-launcher3-master

Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
e78e3d734b577c1ab6dc0738a83600374908ea52 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

1) Use a different content description for temporary new page
2) Use different accessibility description for add widget toast
3) Announce when an item is deleted
4) Announce when hovering over a drop target
5) Announce state during drag-n-drop and widget resize (similar to seekbar)

Bug: 23573321, 24057944
Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
fedca43d396d6fd7c46fbb2f37dfa7cfe3b31834 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Moving drag-drop related code into a separate package.

This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
aa8ef119f18864f4ab41c12f9c2ad6d7f643a0a9 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring ItemInfo

> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
58376925f9596c23f5c9ffa6c99630dfddcfce9c 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing page background not displayed when dragging from all apps

> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
ddec73471eb6cc1f15eb9421a205bb2362509075 30-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Updating fling to delete anim

Change-Id: I1c63e88b3e605113ea66afca9dcfbc30de1d4c8e
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
e9b651eef1b9f3647eba94f833bff3fc52f5956b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Enabling accessibility drag and drop in folder

> Moving DragAndDropAccessibilityDelegate to a separate class
> Using getFocusedVirtualView() instead of using DownX and downY
> Updating various accessibility strings

Bug: 19776741

Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
fa401a10e7e9341daf6f3c5949bf9331902c26d0 10-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Updating drop button targets

> Splitting DeleteDropTarget into delete and uninstall
> Showing UninstallDropTarget for app shortcuts on workspace
> Showing InfoDropTarget only when developer options is enabled

Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
c9735cff2e558aa3f3810e49c15ef13049b9429c 24-Jan-2015 Adam Cohen <adamcohen@google.com> Enabling accessible drag and drop

-> Using the context menu, and a new two stage system, this allows
users to curate icons and widgets on the workspace
-> Move icons / widgets to any empty cell on any existing screen, or
create a new screen (appended to the right, as with regular drag
and drop)
-> Move icons into existing folders
-> Create folders by moving an icon onto another icon
-> Also added confirmations for these and some existing accessibility actions

Limitations:
-> Currently, no support for drag and drop in folders
-> Considering moving the drag view so it doesn't occlude any
content (in particular, when user changes pages)
-> In this mode, accessibility framework seems to have
problems with the next / prev operations

Bug: 18482913

Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
1587d5362f5a66e005aa36fdfc7082c34b8ea3b7 29-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring common methods

Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
7d30a37007bac318db1c9af47a9af12d348042a5 02-Jul-2013 Adam Cohen <adamcohen@google.com> Porting PagedView from KG to gain simplified scaling model, reordering

-> We are no longer scaling individual Celllayouts, instead we are scaling
the entire Workspace (and the CellLayouts come along for the ride)
-> Due to the above change, many assumptions were broken. In particular,
our drag and drop / animation archiecture is fairly fragile due to the
frequent and complex mapping of points between different bits of the
hierarchy. This CL contains a number of fixes which address such
breakages.

Change-Id: I2e630eab17528729b764b61f587858f6499fd318
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
53b8d071ce63b2b55fa8bdc71488c44308bfcf2f 03-Jul-2013 Mindy DelliCarpini <mindyp@google.com> Use autoscroller to handle drag scrolling

Change-Id: Ie094cbfa91f898133f84ad9ffc349d8cfa07e668
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java
325dc23624160689e59fbac708cf6f222b20d025 06-Jun-2013 Daniel Sandler <dsandler@android.com> Launcher2 is now Launcher3.

Changes include
- moving from com.android.launcher{,2} to
com.android.launcher3
- removing wallpapers
- new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
/packages/apps/Launcher3/src/com/android/launcher3/DropTarget.java