History log of /packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
846d7e12c86299c44580761c78ee3c4dc5ab6f71 17-Apr-2017 Sunny Goyal <sunnygoyal@google.com> Fixing icon left on the workspace when drag operation fails

Bug: 37294517
Change-Id: I1982b71cdeacff9e15bfa00c03620888c2a225c8
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
1188b89dc421afabd06c1bbf23e3c7f281cfec36 30-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval
5a81c3806b31c7763734e287d4cf2ed11294281d 20-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Fixing multiwindow drag operation during with rotation.

> Finishing activity when rotation preference change. This ensures that
any prefenrece change is immediately applied instead of waiting for resume
as the new activity is always started with proper setting.
> Clearing task when starting drag in landscape mode. This ensures that a new
activity instance is started in this case, which overrides previous locked
rotation by launcher activity.
> Handling drag request in onCreate and enabling rotation based on it.
> Clearing any request from the launcher intent once the drag operation
is complete

Bug: 36226746
Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
778634c81870ae2013907950a98bb7793802e6c7 21-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Adding logging for various interaction in PinItemRequest UI

Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
c65a0085d77edd8e8821254f081eb94e9dcc5e75 08-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Adding support for showing the widget preview based on the provided RemoteViews

Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
dec3a908bfa395095e80e4a532cff98612b624de 26-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Updating the preview generation logic so that it aligns better with
the drag source image

> Using common code for pending item drag (WidgetContainerView and PinItemDragListener)
> Adding a shortcut-circuit in Workspace when a pendingItem can create a shortcut
directly. Previously the multi-window drop was routing through onActivityResult which
was causing some state information to be lost.

Bug: 33584624
Change-Id: I0259870032185713caa9bff27092dbae6ce91199
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
5cfd1158ec1e4a19689217e9fbddd0fd795b2611 27-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Merge "Handing pin item drag when workspce is not loaded" into ub-launcher3-master
8a0dc38aebdc7624db3de2cdfecb9d11e2baee04 25-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Improving widget handling for pinItemRequest

> Preloading widget view while dragging for smoother
transition
> Skipping config activity and sending confirmation to
the caller when widget is dropped

Bug: 33584624
Change-Id: Ib23e5964298296d12d9c93f38aefdf924a07368e
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
2bcb3fb1f3ac6234ead13d27817b7a32b7c79b1d 26-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Handing pin item drag when workspce is not loaded

While the launcher is loading, the drag view is displayed with a gray tint.
The drag is started, as soon as the workspace is unlocked

Bug: 33584624
Change-Id: I4013ea8b987ec305e73742b194f9e96af761cc35
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java
b38fab75735c601b61765ecae61494c8637aaef4 21-Jan-2017 Sunny Goyal <sunnygoyal@google.com> Adding support for drag and drop for requestPinItem.

On long pressing, the confirmation activity starts a system
drag-n-drop and focuses the launcher activity. We then drive
the launcher drag controller using the system drag event

Caveats:
> We use a transparent preview for system drag and drop and use
a view inside launcher for actual preview. This gives us better
control over various animations.
> The parameters for drag operation are passed to the Launcher
activity using the intent. Since onNewIntent and onDragEvent
come at different times and are not associated, a random uuid
is used as mime-type to match the drag event with intent params
> If the workspace is locked (eg, loader is running) the drag
operation is simply dropped. Will be imporved in follow up cls

Bug: 33584624
Change-Id: I0bb5b25b690f86b6af31a14e11beb669fcb3a281
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/PinItemDragListener.java