* changes:
Listen to and handle drag and drop for homescreen and lockscreen widgets in widget picker activity wrapper.
Implement tap-to-add and drag and drop in the compose widget picker
Pass down the widget interaction callback and flag on whether to support drag shadow
Add widget picker drag and add item listeners.
- adds the logic to toggle add button on tapping preview / details
- adds logic to handle add button click
- adds logic to start drag and drop on long press.
The compose's drag and drop handles drag and drop itself, but in this case we need custom interaction to be able to support calling back listeners / setting result for activity etc. So, we use custom logic with android view.
Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ie13c919248f8bdd20f90c4eb4a0bec266aedde27
These handle those two operations for home screen when widget picker is
opened as a separate activity.
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Not applicable.
Test: See demo in comments
Change-Id: I37f626b57610379a8af4e7a229406ed0656806c2
spring into place from 40 dp offscreen:
expressive default spatial spring
damping: 0.8,
stiffness: 380
Bug: 399642211
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: create desktop and check animation
Change-Id: Ie15b4f58d394590ea24d72036a587111f1e6cf3b
Problem:
The framework prevents a key gesture handler from being re-registered by the same process ID. In `TaskbarAutohideSuspendControllerTest`, we observed two calls to `QuickstepKeyGestureEventsManager#registerAllAppsKeyGestureEvent`. The first call originated from TouchInteractionService (as expected). The second, however, came from a new TaskbarManager instance created within `TaskbarbarUnitTestRule`. This occurs because `TaskManager#recreateTaskbarForDisplay` triggers `AllAppsActionManager#isTaskbarPresent`, which ultimately leads to the duplicate call to `QuickstepKeyGestureEventsManager#registerAllAppsKeyGestureEvent`.
Solution:
Since this problem only occurs in tests and not in practice, we can mock out `QuickstepKeyGestureEventsManager`'s [un]registration calls to do nothing within `TaskbarbarUnitTestRule` to prevent duplicated re-registration.
Flag: com.android.window.flags.grant_manage_key_gestures_to_recents
Test: atest NexusLauncherTests:TaskbarAutohideSuspendControllerTest
Test: atest NexusLauncherTests:TaskbarEduTooltipControllerTest
Fix: 421853013
Change-Id: Ic87bd8d36ce018935002b8698b1d53e30b2fca6d
- When in projected mode and on primary device, only show apps that are
on the primary device.
- When in projected mode and on CD, don't show apps that are on the
primary device.
Test: m
Flag: com.android.launcher3.enable_alt_tab_kqs_flatenning
Fix: 420858769
Change-Id: Id5153f4f5ca3ea878283774d450764838bcd7228
The view is already fading out, animating its position out just adds more visual noise.
Enabling the animation here introduces has performance regression when selecting split or entering desktop mode.
Fix: 420798277
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Performance metric recovered. suite systemui-desktopmode-enter-2-jank-suite
Change-Id: Id0f0f7a61ef1492b06aa4780ba56186afb38ca75
> Moving classes to a separate package
> Extracting PreviewContext outside of renderer
> Always loading the sandbox instead of loading real model followed by a sandbox
> Binding LoaderTask using params so that it can be customized
Bug: 420997234
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Idf45eaba9d8309cb55b47847d8e3686cbb6c0a8e
Since the blocking issue b/420744057 is now fixed.
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 420744057
Change-Id: I973adbcb8cdf4ce31ca80cce31a3dadded3717cd
This was inadvertently reverted in ag/33712864.
Bug: 415247657
Test: Manual
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: Iac3be94342e7def142e31bac34ab9043e870c305
If in future we need to increase this then it will be explicit rather than a surprise with with the first 16 CPU device we encounter.
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Presubmits
Change-Id: I44b71f1c3dde4ca349525630e5d758962dfb8ed9
Set foreground color to ScrimView in overview. Added new state property
for foreground.
Fix: 412928191
Test: Go to overview
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Id4180eaa5501dc11bf7331073edb28dca5c4a13a
This will make it easier for both the Cross OEM developers and also for
others to be able to use these APIs and figure out why their home screen
data is not showing up properly.
Bug: 379378706
Test: EXEMPT comment
Flag: EXEMPT comment
Change-Id: If25bb9d394cc90bb7bd074f4d3d6244dad22818c
Will be adding more functionality in followup cl, and this will make it easier
Bug: 421146818
Flag: EXEMPT refactor
Test: atest FastBitmapDrawableTest
Change-Id: I7ce3ca0dc126efe410c8b7ebec6c601666b7cb54