Commit Graph
87505 Commits
Author SHA1 Message Date
Shamali Patwa acc353194f Implement tap-to-add and drag and drop in the compose widget picker
- 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
2025-06-02 18:47:01 -07:00
Shamali Patwa 6710f2faf2 Pass down the widget interaction callback and flag on whether to support drag shadow
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: N/A
Change-Id: I8d04cb3b0e52c202bf6223e0b0e2e10a4ca6fdb8
2025-06-02 18:46:54 -07:00
Shamali Patwa 5a02a996c6 Add widget picker drag and add item listeners.
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
2025-06-02 18:46:45 -07:00
Federico Baron fc68cd402a Adding interfaces for long press menu updates
Bug: 416087474
Test: EXEMPT adding interfaces only
Flag: EXEMPT adding interfaces only
Change-Id: I50d73b655622a249ce293e1dc456b6a2a27fe810
2025-06-02 17:44:13 -07:00
Federico Baron 9290666f24 Add remove shortcut to long press menu
Flag: com.android.launcher3.enable_long_press_remove_shortcut
Test: NexusLauncherImageTests
Bug: 419289205
Change-Id: I44f12a47f48179be36dea8052080fd61fff05357
2025-06-02 17:43:37 -07:00
Android Build Coastguard Worker 2a3fcfac6c Snap for 13585852 from 33ce4677e5 to 25Q3-release
Change-Id: I7275cf9aa24ab1133fdab681d756348777b1239f
2025-06-02 16:22:13 -07:00
Bill Yi 7370ed82d7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I451d8c699e7352df0a8851d85e242d8841e9e3ab
2025-06-02 23:19:40 +00:00
Shamali Patwa a115ef8523 Merge "Listen to sizing changes to make rotation of picker smoother for widget picker activity" into main 2025-06-02 15:21:18 -07:00
Brian Isganitis a2c2cf6c26 Use displayId from sandbox context.
This matches the default display.

Flag: TEST_ONLY
Test: TaskbarOverflowTest
Bug: 415326979
Change-Id: If8edf46c16cd10105587ced5dfff316d08bbf2fd
2025-06-02 17:06:28 -04:00
Sebastián Franco b11936e0f5 Merge "Moving AllApps device profile variables to their own class" into main 2025-06-02 13:34:10 -07:00
Treehugger Robot 0ff51ee214 Merge "Update alt+tab behaviour for projected mode" into main 2025-06-02 12:57:36 -07:00
Andy Wickham eeaebacf66 Merge "Fix reverse interpolation when closing All Apps." into main 2025-06-02 12:57:02 -07:00
Treehugger Robot 0064944109 Merge changes Ie15b4f58,I9b4db285 into main
* changes:
  Add spring animation for newly created desktop
  Add Icon and Button Opacity Fade through for AddDesktopButton
2025-06-02 12:22:55 -07:00
Treehugger Robot 70cb18792b Merge "Change TTV splash and default background to transparent" into main 2025-06-02 12:18:15 -07:00
Treehugger Robot cb6b287f16 Merge "Fix TaskbarAutohideSuspendControllerTest with grant_manage_key_gestures_to_recents enabled" into main 2025-06-02 12:13:45 -07:00
Sunny Goyal 81207acbbf Merge "Fixing widget size incorreectly updated during preview" into main 2025-06-02 12:09:51 -07:00
Jagrut Desai b5d2f3ee7f Fix Hotseat flashing during DW to home transition
Problem: upon exiting the deesktop mode we were getting change in recents tasks which we were commiting to ui and that resulted in hotseat flashing.

Solution: since layout transition is only in use while we are in desktop windowing mode, we will only need to change icon layout bound while we are in desktop mode and not when we are exiting.

Test: Manual, Presubmit
Bug: 417696108
Bug: 415700104
Flag: EXEMPT bugfix
Change-Id: Ibcf65df49e7b48312a27d2750d3d0c6c5d392006
2025-06-02 10:30:58 -07:00
Jon Miranda 33ce4677e5 Merge "Update taskbar icon alpha in pinned taskbar animation if not final value." into main 2025-06-02 10:01:26 -07:00
Sunny Goyal f6b98ada0d Fixing widget size incorreectly updated during preview
Bug: 408934352
Bug: 228328759
Flag: EXEMPT bugfix
Test: Manually verified
Change-Id: Ie69e67cfaee6231da3971323ae98d2b3ab514c0d
2025-06-02 09:40:35 -07:00
Suhua Lei 3950b7e5bd Add spring animation for newly created desktop
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
2025-06-02 16:36:42 +00:00
Steven Ng 38ff87fca6 Fix TaskbarAutohideSuspendControllerTest with grant_manage_key_gestures_to_recents enabled
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
2025-06-02 17:33:20 +01:00
Treehugger Robot 31ae5a7c6d Merge "Don't cap number of items in taskbar overflow" into main 2025-06-02 08:55:22 -07:00
Xiaoqian (Daisy) Dai ca247dd30b Merge "desktop_exploded_view: re-enable window activation functionality" into main 2025-06-02 08:48:28 -07:00
Pablo Gamito fc3c3bf830 Remove json viewer config
Now that we fully migrated to Perfetto based protologging we don't need
this.

Flag: EXEMPT part of flag clean up
Bug: 322760624
Test: m droid
Change-Id: Ie7ac94fafccf0224ee6390846ee5dda170f74217
2025-06-02 14:35:46 +00:00
Uwais Ashraf a957e7b998 Change TTV splash and default background to transparent
Bug: 420543235
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TTV view-screenshot tests
Change-Id: I8f3065bc21290741a2b01bbed878850fecf5ac38
2025-06-02 05:28:08 -07:00
Uwais Ashraf 3883ac96ff Merge "Change bg Coroutine dispatchers to use single thread." into main 2025-06-02 02:32:57 -07:00
Ajinkya Chalke ac8433b8e6 Update alt+tab behaviour for projected mode
- 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
2025-06-02 08:31:47 +00:00
Treehugger Robot d1bf60e380 Merge "Change ScalingWorkspaceRevealAnim to use SurfaceTransactionApplier." into main 2025-06-01 23:55:07 -07:00
Android Build Coastguard Worker febd5bbbb6 Snap for 13581829 from d3c7533a55 to 25Q3-release
Change-Id: I3c4d2a3f18154f8514d266a76899456bc0476149
2025-06-01 14:17:59 -07:00
Jordan Silva 9a1a97a26d Don't animate the TaskMenuView close transition.
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
2025-06-01 05:36:16 -07:00
Lawnchair BotandCrowdin Bot e2e1cbb608 New Crowdin translations by GitHub Action (#5514)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-06-01 04:01:55 +03:30
Android Build Coastguard Worker 2755a0e470 Snap for 13580881 from a6bab0b412 to 25Q3-release
Change-Id: I96a14db7488ff86e99c2945b7d47dc6f28d375bf
2025-05-31 14:18:12 -07:00
Steven Ng d3c7533a55 Unregister all apps key gesture handler at AllAppsActionManager#onDestory
Bug: 406452076
Flag: com.android.window.flags.grant_manage_key_gestures_to_recents
Test: atest NexusLauncherTests:AllAppsActionManagerTest
Change-Id: Idec5ad32b190eff58c263d6c7696a9f218084f5a
2025-05-31 09:35:09 -07:00
Zongle Wang 4a260236df Remove org.gradle.android.cache-fix plugin (#5511)
It's outdated.
2025-05-31 20:41:27 +08:00
renovate[bot] 65644e5662 fix(deps): update dependency androidx.navigation:navigation-compose to v2.9.0 (#5067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-31 20:30:37 +08:00
ee658fee39 Fix incorrect Obtainium URL in README (#5456)
* Fix nightly Obtainium URL

* Typo

---------

Co-authored-by: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
Co-authored-by: Zongle Wang <wangzongler@gmail.com>
2025-05-31 20:27:32 +08:00
renovate[bot] ddf2b3543d fix(deps): update dependency androidx.datastore:datastore-preferences to v1.1.7 (#5461)
https://developer.android.com/jetpack/androidx/releases/datastore#1.1.7

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-31 20:26:23 +08:00
SuperDragonXD 08b8829e37 Update strings to match M3 style guide
* Remove redundant amperstands (fix #5491)
* Update "Recents" to use "Recents screen" (fix #5492)
2025-05-31 18:29:31 +08:00
Andy Wickham b8a471c0eb Fix workspace blur for non-user controlled animations.
In these cases, stateManager.getTargetState() reflects the state the
animation is going to, while getState() reflects user controlled state
transitions.

An example of this is the All Apps edu animation, which occurs when
you swipe up a few times on the navbar. In this case, the workspace
was not getting blurred because the depth controller didn't think it
was animating towards ALL_APPS.

Demo: https://drive.google.com/file/d/1fR_4dawE6je7Vkcs8InWZG4LcJShUJQA/view?usp=sharing&resourcekey=0-PYDMWlS9-sSbrYO0ATMNEg

Test: Manual (swipe up 3 times on navbar; spot check other state transitions)
Test: atest DepthControllerTest
Flag: com.android.launcher3.all_apps_blur
Fix: 421371766

I'm not sure if the following are fixed, but the symptom is similar.
Bug: 419036313
Bug: 420677002

Change-Id: I55d6d15afbb26169ff531dc1b8869d15ee84b100
2025-05-30 20:30:22 -07:00
Treehugger Robot a6bab0b412 Merge "Updating launcher preview generation" into main 2025-05-30 19:19:38 -07:00
Android Build Coastguard Worker 01751c09fc Snap for 13579076 from bb41fe629a to 25Q3-release
Change-Id: Id4290d9cc7818589c5322ddd5913a31b5ede2dfa
2025-05-30 18:20:42 -07:00
mpodolian 7d00841d44 Updated shell IPC methods
Updated shell IPC methods to display bubble bar pillow view

Bug: 411505605
Test: TreeHugger
Flag: EXEMPT - code removal
Change-Id: I27d19c041433164c1a8cb5bb403a824903bf7dbf
2025-05-30 18:03:40 -07:00
Treehugger Robot 2f9d81a9d7 Merge "Converting FastBitmapDrawable to kotlin" into main 2025-05-30 17:38:05 -07:00
Treehugger Robot 17d69d9db5 Merge "Use pixels as breakpoints for non-desktop grid sizes" into main 2025-05-30 17:29:53 -07:00
Sunny Goyal bf49baab09 Updating launcher preview generation
> 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
2025-05-30 16:44:49 -07:00
Xiaoqian Dai a6022cc451 desktop_exploded_view: re-enable window activation functionality
Since the blocking issue b/420744057 is now fixed.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 420744057
Change-Id: I973adbcb8cdf4ce31ca80cce31a3dadded3717cd
2025-05-30 16:42:09 -07:00
Sunny Goyal 1abaefca1c Merge "Fixing duplicate attribute definition" into main 2025-05-30 16:23:16 -07:00
Treehugger Robot 5e67f9d7cd Merge "Update DisplayControllerSpy for overview on CD" into main 2025-05-30 16:19:33 -07:00
Andy Wickham e8526c5593 Fix reverse interpolation when closing All Apps.
This was inadvertently reverted in ag/33712864.

Bug: 415247657
Test: Manual
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: Iac3be94342e7def142e31bac34ab9043e870c305
2025-05-30 16:17:18 -07:00
Daniel Andersson 1da87916b2 Merge "desktop-exploded-view: Fix regression in quick switch" into main 2025-05-30 15:06:45 -07:00