Commit Graph

19642 Commits

Author SHA1 Message Date
Robin Lee 116eafb95c Add "change aspect ratio" to Recents/Overview
This shows up if the launcher is in a sw600dp-or-greater configuration.

Test: AspectRatioSystemShortcutTests
Test: OverviewMenuImageTest
Test: Manual check on phone, tablet, and inner/outer fold screens.
Flag: com.android.window.flags.universal_resizable_by_default
Bug: 357141415
Change-Id: I1bcbf9299d28ce68cccd636d92ed7195d64736eb
2025-03-24 06:56:05 +01:00
Treehugger Robot ee872972dc Merge "Adding support for custom layouts in Preview" into main 2025-03-22 02:42:04 -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
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
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
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
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
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
Treehugger Robot d3e559a244 Merge "Add logging for which type of migration occurs." into main 2025-03-20 11:13:55 -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
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
Federico Baron c7e8c4e8e7 Add logging for which type of migration occurs.
When upgrading from non one grid to one grid, we should do the row
shift migration type, here we are logging data to make sure that is what
happens on upgrade

Flag: EXEMPT logging
Test: n/a
Bug: 393175684
Change-Id: Id09257094bc9bc44da757c73a4f63bf15987772c
2025-03-20 01:31:45 +00:00
Charlie Anderson 19c4a92ebc Avoid downgrading archived app icon when widget is restored and when apps are archived.
- Restored widget were requesting icons through iconcache, and overwriting the restored icon from restored db.
	- Manually archiving icons would delete icon in cache, we should instead reuse the icon from when it was installed.

Bug: 399649982
Test: Manually performing restore with apps, widgets and shortcuts.
Flag: com.android.launcher3.restore_archived_app_icons_from_db
Change-Id: I4184af480f29eb3ef41173fe5edc5307f263d0b0
2025-03-19 21:28:37 -04:00
Stefan Andonian 4567dac1f6 Merge "Fix PageIndicatorDots Outline" into main 2025-03-19 16:03:33 -07:00
Stefan Andonian 386a7b2c40 If Folders would show extremely cropped title, hide title.
This is an edge case, not standard behavior. This only happens when
the text / display size is at the highest level, and when a folder has
10+ page indicator dots.

Bug: 394355070
Test: Verified manually that this works well, and looks great in LTR mode and RTL mode.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: Id31aad47b94d20d9945495366d5381de27282153
2025-03-19 12:01:47 -07:00
Sebastian Franco c7151f6559 Swap hotseat padding when LTR and in Fixed Landscape
Fix: 404421611
Test: DumptTests
Flag: com.android.launcher3.one_grid_specs
Change-Id: Iba1a19f13d1e8ce164ca4f5b9306c7cdca369814
2025-03-19 09:52:04 -07:00
Treehugger Robot 445e12fdb5 Merge "Update Workspace App Icon Long-Press Menu's Text to Google Sans Flex" into main 2025-03-18 15:38:27 -07:00
Stefan Andonian 00cde3149b Fix PageIndicatorDots Outline
Invalidate the outline when a Folder or WidgetPicker's PageIndicatorDots
become visible with 0 scroll. Necessary to avoid stale Outlines which
appear as grey shadows.

Bug: 394355070
Test: Verified manually that this works well, and looks great in LTR mode and RTL mode.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I3e730b1109b9cd05e25454865f7e97df2078725b
2025-03-18 12:38:41 -07:00
Stefan Andonian 031188dd0a Update Workspace App Icon Long-Press Menu's Text to Google Sans Flex
Bug: 393615290
Test: Verified via hard-coding flag to be true that fonts were correctly updated.
Flag: com.android.wm.shell.enable_gsf
Change-Id: I9ff1405356a4ceb2930b09f27e973e4cacb72d2e
2025-03-17 17:56:31 -07:00
Sunny Goyal d7a1c17988 Merge "Moving LauncherAppWidgetHolder to dagger" into main 2025-03-17 10:42:15 -07:00
Brandon Dayauon 95cb740e76 Merge "Let psApp change according to theme." into main 2025-03-17 10:27:35 -07:00
Sunny Goyal 66916cda10 Moving LauncherAppWidgetHolder to dagger
This would allow customizing the widget holder in LauncherPreview

Bug: 361850561
Test: Updated tests and presubmit
Flag: EXEMPT dagger
Change-Id: I32491169188992453693048986c57cb780fdf1d8
2025-03-14 14:19:29 -07:00
Treehugger Robot 86045eadd7 Merge "Making GridCustomizatonProxy extendible" into main 2025-03-14 14:05:58 -07:00
Treehugger Robot ffde6fdec8 Merge "Add logging for each migration type" into main 2025-03-14 09:31:34 -07:00
Helen Cheuk 8b408e4767 Merge "Check null when getting drop view in DragController" into main 2025-03-14 04:05:23 -07:00
Sunny Goyal 370eabf534 Merge "Making ModelDbController injectable" into main 2025-03-13 23:20:17 -07:00
Federico Baron 3da182844d Add logging for each migration type
Flag: EXEMPT logging
Test: n/a
Bug: 393175684
Change-Id: Idfa551cb1e83c3c3bce498b6986035460798b93b
2025-03-14 02:54:31 +00:00
Brandon Dayauon 59ed963a06 Let psApp change according to theme.
Since psApp is supposedly a system app, private space team requests that
the icon changes according to theme like previous "install" icon. To do
so Launcher can apply the same treatment to the bitmapInfo as for
the private space app.

bug: 360313403
Test: manually video in bug
Flag: android.multiuser.enable_moving_content_into_private_space
Change-Id: I78f0d0dbb12d5cfba2cac7e7b53714e424a49660
2025-03-13 21:20:22 +00:00
Treehugger Robot f2ceba9ba7 Merge "Removing listeners from FolderInfo" into main 2025-03-13 12:48:34 -07:00
Sunny Goyal 25f5c7e761 Making ModelDbController injectable
Bug: 361850561
Test: Updated tests
Flag: EXEMPT dagger
Change-Id: Ie600469476ce5eb60813a3c8b57b9445fcf82c24
2025-03-13 11:23:23 -07:00
Brandon Dayauon d6e638c5cd Merge changes from topic "privateProfileMoveContent" into main
* changes:
  Change private space app content description
  Don't show system shortcuts for the psApp
2025-03-13 11:03:01 -07:00
Stefan Andonian 22574b46e8 Merge "Fix Entry Animations for VisualRefresh Page Indicator Dots" into main 2025-03-13 10:42:53 -07:00
Sunny Goyal 1ac78b6ec6 Removing listeners from FolderInfo
Folder and FolderIcon are UI objects and can talk to each other directly.
FolderInfo changes are already propogated via model callbacks, and doesn't need a separate listener pattern.

Bug: 398791288
Flag: EXEMPT bugfix
Test: atest FolderTest

Change-Id: Iefd47b8ea12a8ecaf34211a3d908220a0e999187
2025-03-13 10:28:07 -07:00
helencheuk de869b3624 Check null when getting drop view in DragController
When the flag is on, there are some cases dropTarget is null:
TaplTestsTaskbar.testOpenMenu_fromTaskbarAllApps
TaplTestsTaskbar.testLaunchShortcutInSplitscreen
TaplTestsTaskbar.testLaunchShortcut

Add logic to check null before getting drop view and calling drop complete.

Bug: 343650193
Test: TaplTestsTaskbar.testOpenMenu_fromTaskbarAllApps
Test: TaplTestsTaskbar.testLaunchShortcutInSplitscreen
Test: TaplTestsTaskbar.testLaunchShortcut
Flag: com.android.launcher3.remove_apps_refresh_on_right_click
Change-Id: If8ce93bd6f7d0506e2272ca17dd7c19666549cfa
2025-03-13 15:21:11 +00:00
Stefan Andonian 43e7eba492 Fix Entry Animations for VisualRefresh Page Indicator Dots
Previously, the folder entry was offset, and also clipped in RTL modes.
This is because the new PageIndicatorDots are wider than the previous ones.

Bug: 383974843
Test: Verified that everything works in RTL and in LTR modes.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I3bacf454befac2b8148236253a82bd5b7317036a
2025-03-12 21:32:40 -07:00
Stefan Andonian db74d32103 Fix Page Indicator Dots Arrow Clicks in RTL Mode
I assumed that these would map to start and end, but they actually
are literally right and left arrows, even in RTL mode.

Bug: 383974843
Test: Verified that everything works in RTL and in LTR modes.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I8027f33cde9b2c7cc241b9b13414bb1ffed94d31
2025-03-12 21:18:57 -07:00
Sebastián Franco 837e576c56 Merge "Add padding in Fixed Landscape on the side oposite of the camera hole" into main 2025-03-12 18:34:30 -07:00
Brandon Dayauon 0e3de56211 Change private space app content description
bug: 360313403
Test: manually
Flag: android.multiuser.enable_moving_content_into_private_space
Change-Id: I3fb779e5217285c6d6b059f021c6d5f965aed531
2025-03-13 01:01:44 +00:00
Brandon Dayauon 726fbcf003 Don't show system shortcuts for the psApp
bug: 360313403
Test: manually - https://hsv.googleplex.com/5320142379548672
Flag: android.multiuser.enable_moving_content_into_private_space
Change-Id: Ibb3322ab7793d3d9e925d5392a80bb6bd16568fd
2025-03-13 01:01:40 +00:00
George Lin 4aec306026 Merge "Handle app icon preview and update cases" into main 2025-03-12 17:48:53 -07:00
Treehugger Robot 9e50f5eea4 Merge "Fixing folder contents getting clipped during open/close animation" into main 2025-03-12 13:41:42 -07:00
Andy Wickham 250d85698c Merge "Adds all_apps_blur flag." into main 2025-03-12 11:25:50 -07:00
Sunny Goyal 778b89c334 Fixing folder contents getting clipped during open/close animation
Bug: 394932723
Test: Manual
Flag: EXEMPT bug-fix
Change-Id: I4995f8c178f7a422cb03a2b548b77fd88b93fab6
2025-03-12 11:23:23 -07:00
Helen Cheuk df47454b28 Merge "Reland - Not refresh predicted app in right click" into main 2025-03-12 11:14:26 -07:00
Thu-Huong Vu 09846676b5 Merge "Register SimpleBroadcastReceiver permission." into main 2025-03-12 10:36:22 -07:00
Stefan Andonian 85b5f813eb Merge "Fix RTL mode for new PageIndicatorDots" into main 2025-03-12 10:01:00 -07:00
helencheuk 69193807f7 Reland - Not refresh predicted app in right click
When users right click the mouse/touchpad, predicted apps in hotseat refresh and it is weird.
It refreshes because the right click is treated as a drag and a drag would trigger predicted apps refresh.
This fix adds a PreDragCondition when right click to avoid it from starting drag.

Bug: 343650193
Test: Manual, connect to touchpad and right click on widget and folderIcon
Flag: com.android.launcher3.remove_apps_refresh_on_right_click
Change-Id: Id0be87beb8a0e9baf78a4ba8ec4c93462ec7bb3e
2025-03-12 15:56:53 +00:00