Commit Graph

83004 Commits

Author SHA1 Message Date
Treehugger Robot 43b4273e91 Merge "[Memory Leak] Avoid spamming DragLayer's run queue" into main 2025-03-21 22:54:24 -07:00
minch 13e1445773 Migrate to TopTaskTracker.getPlaceholderGroupedTaskInfo
Migrate all the call sites of `TopTaskTracker.getPlaceholderTasks`
and `getSplitPlaceholderTask`s to the new API
`getPlaceholderGroupedTaskInfo`

Bug: 401582344
Flag: EXEMPT refactor
Test: m
Change-Id: I0d71508f4dd9633fea025ed842c4c048d0e70462
2025-03-22 05:23:06 +00:00
minch fba9726258 Introduce TopTaskTracker.getPlaceholderGroupedTaskInfo
This CL just introduces an API inside TopTaskTracker to return
a GroupedTaskInfo, no existing logic being migrated to it yet.

It will be used to replace `getPlaceholderTasks` and
`getSplitPlaceholderTasks` in the follow-up cls.

Bug: 401582344
Flag: EXEMPT, introduce a new API without usage
Test: m
Change-Id: Ic12003833605582d191c4abfd4a0878c266dd30f
2025-03-22 05:22:05 +00:00
Treehugger Robot 0eb0360146 Merge "Fix Pinning Animation" into main 2025-03-21 19:48:28 -07:00
Sukesh Ram 54f23ff654 Fix Pinning Animation
Fix Pinning Animation.

Flag: EXEMPT not adding new behavior
Bug: 405469510
Test: m
Change-Id: Iabc580031495f39902cb4d718ab12a7362c07d13
2025-03-21 17:18:45 -07:00
Shamali P 4ec89fbc63 Add ViewStubs for DWB layouts to avoid duplicate views in refactor
This CL just moves existing code to use view stubs. The refactor CLs
will use the flag to conditionally inflate these views.

Bug: 405359346
Fix: 405359346
Flag: EXEMPT refactor
Test: Existing screenshot tests and manual demo
Change-Id: Ib023d5f3538a0959a5965704a4ff18d769f8aa94
2025-03-21 16:26:07 -07:00
Shamali Patwa 1065e89e6e Update font weights for the text in widget list header's selected states
Bug: 398765355
Flag: EXEMPT a11y bug
Test: Screenshot test
Change-Id: Idf20650b8cca70af8d9025197452d457f5dc66ae
2025-03-21 15:33:10 -07:00
Fengjiang Li 8c7805b67a [Memory Leak] Avoid spamming DragLayer's run queue
Avoid adding duplicated ViewTreeObserver#addOnDrawListener from DepthController

Fix: 405158421
Flag: NONE - released code
Test: manual - presubmit
Change-Id: Ib59c130667c5c0a012de3205d11c8de1d6de3903
2025-03-21 13:40:17 -07:00
Charlie Anderson ca9a920fa9 Make sure loading icons from db for archived apps only happens once after restore.
- This is to enable users to theme and shape archived apps

Bug: 402303619
Flag: com.android.launcher3.restore_archived_app_icons_from_db
Test: performing restore and toggling themed icons on/off
Change-Id: I5883f703c3b0c8df5ee303ea4d99b0c02743faa4
2025-03-21 13:29:14 -07:00
Treehugger Robot 500698152c Merge "Hide scroll arrows from Alt+Tab UI" into main 2025-03-21 11:41:55 -07:00
Saumya Prakash cfe62a68d2 Merge "Ensure back button shows up in Simple View for SUW" into main 2025-03-21 10:41:59 -07:00
Liran Binyamin 6fb96f4fac Merge "Remove flaky test from BubbleBarViewAnimatorTest" into main 2025-03-21 10:40:14 -07:00
Sunny Goyal 31b4d2bd32 Adding support for custom layouts in Preview
Also fixing folder items not getting loaded when using sandbox

Bug: 381897614
Test: Verified manually
Flag: com.android.launcher3.extendible_theme_manager
Change-Id: I57232dcb4112c9e4d9dd08f02fc1b720a5adb0e2
2025-03-21 10:32:38 -07:00
Saumya Prakash 91a081f26c Merge "Shift to using SUW System property flag for expressive theme" into main 2025-03-21 09:10:33 -07:00
Sebastián Franco f33242b9e6 Merge "Return correct QSB bottom padding when QSB is inline" into main 2025-03-21 09:09:09 -07:00
Sebastián Franco 49f7acf7a4 Merge "Swap hotseat padding when LTR and in Fixed Landscape" into main 2025-03-21 09:09:09 -07:00
Liran Binyamin 386212e7aa Remove flaky test from BubbleBarViewAnimatorTest
This test is flaky in robolectric but does not repro locally.
Looking at the test it verifies that the animation doesn't get
canceled immediately after it starts. So the scenario here is an
edge case for something that shouldn't happen generally because
the animation is controlled in this class, although theoretically
other classes could obtain a reference to the physics animator and
cancel it directly. But since the test flakes badly, we're better
off without it until it can be fixed.

Bug: 404773413
Flag: EXEMPT test only
Test: atest BubbleBarViewAnimatorTest
Change-Id: I24493b71842a2fe859ffe40b6f375ade7ee8535d
2025-03-21 07:00:53 -07:00
Alex Chau df6dc455a7 Merge changes from topic "revert_task_content_view" into main
* changes:
  Revert "Add TaskContentView parent to TaskThumbnailViewHeader and TTV"
  Revert "Remove redundant FrameLayout from task_header_view.xml"
2025-03-21 04:14:36 -07:00
Wei Sheng Shih 1354a8e084 Revert^2 "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"
This would create another SurfaceControl object through IPC, which is
unnecessary because the animation should run through
BackAnimationRunner.

Flag: com.android.window.flags.remove_depart_target_from_motion
Bug: 395035430
Test: execute back-to-home transition several times, verify no
predict_back animation leash left in offscreen layer.

Change-Id: Ib54380411438fc7169a37740bf09d7d83344f916
2025-03-21 07:43:20 +00:00
Treehugger Robot cb724aeb2b Merge changes I0ad8d5c2,I04815313 into main
* changes:
  Do not defer All Apps updates with async inflation.
  Add logs for the app binding flow.
2025-03-20 23:14:03 -07:00
Bill Yi 5e6577f830 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ied884cebd90cb664df4b5f3f334205042e1a4b84
2025-03-21 05:55:13 +00:00
Bill Yi ce919b4cda Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8f0b708b27ae14e4f8f7fd8e1b3be445d1409e61
2025-03-21 05:54:09 +00:00
Andy Wickham c966dd4ef6 Do not defer All Apps updates with async inflation.
With enableWorkspaceInflation, onCompleteSignal can be executed
minutes after the initial bind, leaving All Apps in a stale empty
state. And the async approach removes the need for this deferred
rendering anyway.

Bug: 393406722
Test: Wipe, add personal account in SUW, add work account.
Flag: EXEMPT bugfix
Change-Id: I0ad8d5c26f4b982403aead5cbd190482fcc42dfe
2025-03-21 03:56:41 +00:00
Treehugger Robot eb39bf2543 Merge "Fixes folder changing size when going from ClipIconView to FolderIcon on closing app to folder" into main 2025-03-20 17:19:47 -07:00
Treehugger Robot a75e779ee8 Merge "[CD Taskbar] Bypass binder calls for TaskbarManager#getDefaultDisplayId()" into main 2025-03-20 16:25:34 -07:00
Treehugger Robot fe15021226 Merge "Fix back button not reacting to accessibility actions (2)" into main 2025-03-20 15:43:52 -07:00
Charlie Anderson 5290d4895a Fixes folder changing size when going from ClipIconView to FolderIcon on closing app to folder
Bug: 398080005
Test: manually closing apps to folder
Flag: EXEMPT bug fix
Change-Id: Ie0b087b71483833c2152d8a3c39b73a05fa3dd35
2025-03-20 17:56:11 -04:00
Sebastian Franco 82385f0b6a Return correct QSB bottom padding when QSB is inline
Bug: 403273334
Test: HomeScreenImageTests
Flag: com.android.launcher3.one_grid_specs
Change-Id: I42433f72313668f1c620b18e7a82d385269c13d0
2025-03-20 14:30:21 -07:00
Li Lin ce62f1d47a Merge "Add action performers for Growth Framework." into main 2025-03-20 14:13:14 -07:00
Sukesh Ram 602874bb51 [CD Taskbar] Bypass binder calls for TaskbarManager#getDefaultDisplayId()
Calls to TaskbarManager#getDefaultDisplay() were making binder calls each time, which caused a crash in cases where binder is blocked. Now, I cache the default displayId avoid these calls.

Flag: EXEMPT not adding new behavior
Bug: 400606685
Test: m
Change-Id: I4a0c0d0c99efb137119b2299d3259541379a6bb6
2025-03-20 13:57:35 -07:00
Jagrut Desai bda2a6fb10 Merge "Fix 3-button nav diplacement on lockscreen" into main 2025-03-20 13:49:54 -07:00
Mykola Podolian c12d67c4e0 Merge "Drag and drop from the search view on the overview screen." into main 2025-03-20 13:40:29 -07:00
Treehugger Robot 0d58891187 Merge "Reset IconAppChipView drawables when TaskContainer is destroyed" into main 2025-03-20 13:34:27 -07:00
Randy Pfohl ccab1b83e8 Merge "Small refactor to displayDecor listeners" into main 2025-03-20 13:31:08 -07:00
Treehugger Robot 00310cd372 Merge "Get top task per display from TopTaskTracker" into main 2025-03-20 12:19:06 -07:00
Saumya Prakash 850ee61de6 Ensure back button shows up in Simple View for SUW
This change adds support for the dynamic changing of navigation modes in
SUW such that the back button will be visible in both states. Previously
there was no way to switch navigation modes during Setup Wizard, before the
introduction of Simple View. The buttons were not being drawn correctly
(or at all).

Fix: 381016997
Fix: 381363853
Test: Rerun SUW, enable simple view and ensure that the back buttons
works in both orientations and that the SUW buttons are unaffected
Flag: EXEMPT bugfix

Change-Id: Ifbdf0c9cd06f1347e6c2c9a943711cefbf6bff2c
2025-03-20 19:17:32 +00:00
Treehugger Robot d3e559a244 Merge "Add logging for which type of migration occurs." into main 2025-03-20 11:13:55 -07:00
Jordan Silva 3795b04634 Reset IconAppChipView drawables when TaskContainer is destroyed
Bug: 405116138
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Test: OverviewMenuImageTest
Test: Manual. Instructions in the bug.
Change-Id: I6f0d63867147995461ada7c21ad1ab22a26a9f55
2025-03-20 11:07:03 -07:00
Charlie Anderson 591a58cc93 Merge "Avoid downgrading archived app icon when widget is restored and when apps are archived." into main 2025-03-20 10:46:01 -07:00
Sukesh Ram 19de54a02d Merge "[CD Taskbar] Null Protect Taskbar against onLauncherVisibilityChange crash" into main 2025-03-20 10:26:33 -07:00
Schneider Victor-tulias f30a5e3cce Merge changes Id10bb2ac,Ie8edd55b into main
* changes:
  Have Taskbar listen for RecentsState as well
  Fix TaskarUIController being wrong with Overview-in-Window enabled
2025-03-20 10:09:18 -07:00
Will Osborn 7e3c0c2249 Get top task per display from TopTaskTracker
Test: locally tested on tablet
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 402362465
Change-Id: I0eb66c5c931fe30ce954657ee1b0eb2d87e58943
2025-03-20 16:40:28 +00:00
Mykola Podolian 6ddfa5dfd5 Drag and drop from the search view on the overview screen.
When the bubble bar is stashed and an icon is dragged from the search
grid towards it, the bubble bar should be un-stashed. Conversely, if the
icon is dragged to the opposite location of the stashed bubble bar, the
handle should teleport out, and the collapsed bubble bar should
teleport in.
This change implements logic that addresses this behavior.

Bug: 399678274
Test: Manual. Drag and drop application icons from the search grid to
the bubble bar drop areas.
Flag: com.android.wm.shell.enable_create_any_bubble

Change-Id: Ief9ef3e5c24f8199b2812fd0adf63ae3f6cf8f32
2025-03-20 09:39:35 -07:00
Jordan Silva efb3f85615 Merge "Set the elevation for TaskMenuView when overview icon menu is enabled." into main 2025-03-20 09:22:09 -07:00
Vinit Nayak f36726e58a Revert "Re-use existing method to get split root"
This reverts commit 7f6f7aad7b.
* Fix forward at ag/32331020

Bug: 399037701
Flag: EXEMPT bugfix

Change-Id: I48079ecb8232bc1026ba389cebe8ddf7d32b71f0
2025-03-20 09:02:14 -07:00
Vinit Nayak f93544c58c Revert "Reset leashes before starting taskbar app pair launch animation"
This reverts commit ba25fd9523.

Bug: 399037701
Flag: EXEMPT bugfix

Change-Id: Ifda203670c3273ce28fc6522f08cca830da95957
2025-03-20 09:01:14 -07:00
Andy Wickham a97f179909 Add logs for the app binding flow.
This can help debug issues like the blank all apps issue.

Bug: 393406722
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I0481531313d3633c46e63646511b59e081046cf8
2025-03-20 15:29:59 +00:00
Randy Pfohl 941634bb53 Small refactor to displayDecor listeners
Test: Ran tests and verified callbacks

Flag: com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: I33a4219209495f1960094ba766c1d5c82d70d9d1
2025-03-20 15:00:33 +00:00
Treehugger Robot aa53bd3392 Merge "Allow fast flinging to cancel task dismiss." into main 2025-03-20 07:15:16 -07:00
Uwais Ashraf bbe63db85c Merge changes from topic "cleanup-existing-update-disabled-flags" into main
* changes:
  Remove existing superceded calls to updateDisableFlags
  Change actions view disabling logic
2025-03-20 07:00:19 -07:00