b/22541466
>TL;DR;; when introducing mProfileBadgeMargin to correctly place
> work profile badge. Drawing origin of the preview image resulted
> to the left of (0, 0).
Change-Id: Ic52fc2e17c55c76f4f57aa833451ffa19bbbeb09
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
* commit '102c95dbff6d166292903e40dad7b364e59ef1c9':
resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit 'cc619e2eca624d293e0e7f65f82305a5d925dbf7':
resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit '6ce4ac13964e2ecb852dba5c2cf35c55929f8fc7':
resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit 'e612775922ec9f8cc4e5cb976bc62b3312a3de0e':
resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit '13ef17a37e683b8ad5800e9f542b411180fbec2f': (500 commits)
Adding minSpanX and minSpanY for all the launcher widgets
[DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
Query the title and icon for app using correct user handle.
Fix issue where corp app widget doesn't show correctly on drop targets.
[DO NOT MERGE] fixing build break
Fixing AppWidgetInfo not initialized with proper user
[Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user
Fix issue with UiThreadReveal on L devices
Import translations. DO NOT MERGE
Using highres icons for backup
Import translations. DO NOT MERGE
Widget row should not be cut off on the right, when there is an indent
Fixing shortcuts not getting migrated to app icons
Fixing regression in calculating workspace padding.
Hide spammy WidgetModel log behind a DEBUG flag
Import translations. DO NOT MERGE
Animation should start and finish on widgets button when opening/closing widget tray.
Making long-press of AllApps to jump directly to search.
Computing the visible cell layout area without using the current scroll
Fixing overscroll not drawn in rtl
...
When a folder is opened by mouse or touch, the Folder view itself
obtains the focus rather than the views inside of the folder
which causes the reported bug.
Bug: 22562679
Change-Id: Ia4ccc59ca27e560e470122d1b2c6c1eccb4caf9a
- WidgetsAndShortcutNameComparator was using the actual widget and shortcut resolve
infos as the key to the label cache. Neither of these classes override hashCode()
and we were retrieving a new set of widgets and shortcuts whenever packages changed
so we would end up creating more and more entries in the cache. This isn't a huge
leak, but could lead to problems if Launcher is used for long periods without being
killed.
- Now, we use a ComponentKey as the key, so that we don't keep a reference to the
widget/shortcut infos and also ensures that they should hash to the same labels.
Change-Id: I91347ee72363adbc2b075b67dba331e35ab1fe34
* commit '0c0d54637af7109ae22e21a117dba3efdaded4b5': (500 commits)
Adding minSpanX and minSpanY for all the launcher widgets
[DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
Query the title and icon for app using correct user handle.
Fix issue where corp app widget doesn't show correctly on drop targets.
[DO NOT MERGE] fixing build break
Fixing AppWidgetInfo not initialized with proper user
[Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user
Fix issue with UiThreadReveal on L devices
Import translations. DO NOT MERGE
Using highres icons for backup
Import translations. DO NOT MERGE
Widget row should not be cut off on the right, when there is an indent
Fixing shortcuts not getting migrated to app icons
Fixing regression in calculating workspace padding.
Hide spammy WidgetModel log behind a DEBUG flag
Import translations. DO NOT MERGE
Animation should start and finish on widgets button when opening/closing widget tray.
Making long-press of AllApps to jump directly to search.
Computing the visible cell layout area without using the current scroll
Fixing overscroll not drawn in rtl
...