Commit Graph

20057 Commits

Author SHA1 Message Date
Sunny Goyal 3fd385c1cd Moving grid customization provider to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I0ebc2a614b9448e5de97d3dda43d98b951989689
2025-02-20 10:16:56 -08:00
Treehugger Robot ca902dc757 Merge "Don't modify invariant device profile" into main 2025-02-20 09:59:54 -08:00
Charlie Anderson b982bfede0 Merge "Removing Sunny shape option" into main 2025-02-20 06:40:12 -08:00
Treehugger Robot cad0c7f8c6 Merge "Make can create new desks a global state" into main 2025-02-19 18:13:42 -08:00
Treehugger Robot 1444e05a5f Merge "Fix performance regressions with handheld apps panel." into main 2025-02-19 17:32:20 -08:00
Treehugger Robot f0dd54fb83 Merge "Exclude dynamic shortcuts from being force themed" into main 2025-02-19 14:46:39 -08:00
minch 92cb978575 Make can create new desks a global state
Bug: 389209338
Test: m
Flag: EXEMPT new APIs update without impl yet.
Change-Id: Id7ebfbc1d03d823932515df42fa51e22f44f8116
2025-02-19 21:24:49 +00:00
Federico Baron c07bf539ee Don't modify invariant device profile
We flag guard the code that modifies IDP as that's not needed with one
grid, and we don't want to modify idp outside of it

Bug: 332974074
Flag: com.android.launcher3.one_grid_specs
Test: verified manually with b&r
Change-Id: Ica2ffa79638fa693cde421adb13feebb0d09cbc4
2025-02-19 19:20:03 +00:00
Sunny Goyal 91547eb4d2 Merge "Simplifying icon normalization for adaptive icons" into main 2025-02-19 10:36:30 -08:00
Sihua Ma 097efdc8ac Exclude dynamic shortcuts from being force themed
Test: Manual
Bug: 397501448
Flag: com.android.launcher3.force_monochrome_app_icons
Change-Id: Iff1010e268c99ce192e1445ec124229c84420b23
2025-02-19 18:16:10 +00:00
Charlie Anderson 96fa7a4c79 Removing Sunny shape option
Bug: 397683324
Test: selecting shapes, and presubmit
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I3d9ea0096674c07a860ba3d7dcc8074c4342a299
2025-02-19 17:46:27 +00:00
Charlie Anderson 69c7dc4348 Merge "Use selected shape during app launch animation" into main 2025-02-19 09:37:41 -08:00
Treehugger Robot 0436794339 Merge "Fix work badge theme issue when dropping icons" into main 2025-02-19 03:40:59 -08:00
Treehugger Robot e99943f092 Merge "Moving LauncherModel initialization to a separate class" into main 2025-02-18 16:56:02 -08:00
Sihua Ma aa69e18fc8 Fix work badge theme issue when dropping icons
Fix: 397257046
Test: Manual
Flag: EXEMPT bug fix
Change-Id: I83280f990fa70dd6b7b78fc23506a9757125f59c
2025-02-19 00:29:16 +00:00
Owner Cleanup Bot 27dae5ff63 Merge "[owners] Remove zakcohen@google.com from src/com/android/launcher3/widget/picker/OWNERS" into main am: 40e6992c56 am: 3e6ebbb761
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3490733

Change-Id: I0c033754c4c3767efb56556e1187d66af28b139a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-18 14:33:42 -08:00
Sunny Goyal b292fcfec8 Merge "Changing ThemeManager to take IconControllerFactory as a parameter" into main 2025-02-18 14:13:54 -08:00
Sebastián Franco a13175d183 Merge "Fix null ptr exception on createUpdateRunnable lambda" into main 2025-02-18 14:03:20 -08:00
Sunny Goyal b82394758f Moving LauncherModel initialization to a separate class
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: Ie210473a9e158faa421c00f115ffcca680f84ae4
2025-02-18 13:11:50 -08:00
Charlie Anderson 43f4b55bdb Use selected shape during app launch animation
Bug: 372906633
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: manually launching apps

Change-Id: I86879e51df95b791266e9a5678042859a3fb27f0
2025-02-18 18:30:28 +00:00
Mady Mellor 21fde7581c Merge "Allow bubble bar to show on phones if the flag is enabled" into main 2025-02-18 09:34:44 -08:00
Treehugger Robot c7e545674d Merge "Fix issue where hotseat apps don't migrate to the new grid" into main 2025-02-14 17:40:51 -08:00
Andy Wickham 62f205b9e4 Fix performance regressions with handheld apps panel.
Theory: We are now rendering the wallpaper and workspace while All
Apps is open. This is causing additional rendering to be done,
leading to dropped frames and other regressions.

Here I remove workspace/hotseat on phones where the panel will
fully cover them anyway. I also remove the depth controller
during the all apps transition.

Using the "debug overdraw" developer setting, I verified that
Workspace and Hotseat are not drawn below the All Apps panel on
handheld.

I ran ABTD on this change and verified the p95 dropped frames
went back to 0.

Bug: 393188362
Bug: 393088056
Test: abtd commands in the bug
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: I47287f3356d401a3bd4202e61fd44199855a4a3c
2025-02-14 22:44:13 +00:00
Brandon Dayauon 3fbac53d02 Merge "Add logs to components in AllApps to verify click." into main 2025-02-14 14:09:19 -08:00
Mady Mellor 768019357f Allow bubble bar to show on phones if the flag is enabled
* Check for bubble bar on phone being enabled in most places
  tiny taskbar was checking
* Forces taskbar to always be stashed when bubble bar is enabled
* There are a couple of visual issues with the flag enabled:
  - extra space in overview
  - the hotseat is a lil squished on home when bubbles are there

Flag: com.android.wm.shell.enable_bubble_bar_on_phones
Test: manual - enable bubble bar on phones observe that bubble bar
               is enabled and kind of works
Bug: 394869612
Change-Id: I56d3045c78c6c31dcacf16744033b34c9aa5f6e0
2025-02-14 13:09:46 -08:00
Sunny Goyal 33bf137ee9 Changing ThemeManager to take IconControllerFactory as a parameter
This allows customizing different parts of ThemeManager independently

Bug: 381897614
Flag: com.android.launcher3.extendible_theme_manager
Test: Presubmit
Change-Id: Iea266793eff47ac54e5c4fcddbab1c36c955dbb7
2025-02-14 11:22:33 -08:00
Anushree Ganjam 5a8fcc3d40 Merge "Refactor TestEmitter and it doesn't need to be MainThreadInitializedObject" into main 2025-02-14 10:35:40 -08:00
Federico Baron b8030e9627 Fix issue where hotseat apps don't migrate to the new grid
Hotseat apps would not migrate to a new grid if the new grid already had
hosteat filled out. This resolves the issue and addresses the issue of
workspace spots showing up as occuppied when they should be available

Bug: 395786587
Test: GridSizeMigrationTest, GridMigrationTest, ValidGridMigrationTest
Flag: EXEMPT bugfix
Change-Id: I79613986702c7dddf15a9a31c29b4ef59eac2b3a
2025-02-14 18:30:54 +00:00
Sunny Goyal fe5101d8de Simplifying icon normalization for adaptive icons
Bug: 366237794
Flag: EXEMPT refactor
Test: PResubmit and screenshot tests
Change-Id: Id21e57c9d4ba83983f27aa7988a08db3fd618ce3
2025-02-14 09:09:33 -08:00
Sunny Goyal 29f9c3d231 Merging IconShape with ThemeManager
The order of initialization for IconShape is closely tied to ThemeManager
which makes it difficult for change listeners to work. Merging these keeps
all the theming information at one place

Bug: 381897614
Test: Updated tests
Flag: EXEMPT refactor
Change-Id: Ie29efa20c3308a24be3e284c1c93ed7444b68d58
2025-02-13 22:38:01 -08:00
Anushree Ganjam 7128c6fcfb Refactor TestEmitter and it doesn't need to be MainThreadInitializedObject
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I30e7c3c165db698785e9e4d7e2256ab061ff71a2
2025-02-13 15:20:17 -08:00
Brandon Dayauon 3791a80e28 Merge "Fix focusability of web suggest via talkback" into main 2025-02-13 15:05:14 -08:00
Sebastián Franco 3d3438ebbb Merge "Rotate Wallpaper Picker if in FixedLandscape" into main 2025-02-13 13:26:26 -08:00
Sunny Goyal d1f19b103f Merge "Moving LauncherIcons to dagger" into main 2025-02-13 10:43:59 -08:00
Treehugger Robot 6191d06684 Merge "launcher3: Improve SimpleBroadcastReceiver." into main 2025-02-12 18:19:35 -08:00
Sunny Goyal 46b9e9a2dd Moving LauncherIcons to dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: Ia6de74a5fd632872460dc7745f6c29ead1ab0a2e
2025-02-12 16:47:12 -08:00
Ana Salazar Maldonado 3bb0634a32 Merge "Fix contrast tile measurement calculation for folders" into main 2025-02-12 16:45:54 -08:00
Treehugger Robot c2ef2629cd Merge "Notify with onIsInDesktopModeChanged()" into main 2025-02-12 16:27:38 -08:00
Treehugger Robot 6a039c4465 Merge "Implement isInDesktopMode*()" into main 2025-02-12 15:31:53 -08:00
Ana Salazar Maldonado 4ff68edea9 Fix contrast tile measurement calculation for folders
When creating a folder, the element name begins empty. Because of this,
while layout is happening, the paddings for the text and the bubble are
not considered. Fix the condition within onMeasure to add the respective
paddings when the bubble could be drawn.

Bug: 341217082
Flag: com.android.launcher3.enable_contrast_tiles
Test: Manual, visual change
Change-Id: Ie707102fa3d4827568a9db247ea5ebf5f8e1ae0d
2025-02-12 14:31:01 -08:00
Adnan Begovic 1b26bb4a74 launcher3: Improve SimpleBroadcastReceiver.
Unless explicitly annotated, parameters in java are by
  default nullable. There are a few cases where a null context
  may be passed to the unregisterReceiverSafely function
  of SimpleBroadcastReceiver.

  To mitigate misuses or incorrect contexts being passed for
  register vs unregister, keep the context as a strong reference
  in the constructor.

  Also added NonNull annotations for any public callsites to
  enforce behavior.

Bug: 395019017, 395966395
Flag: NONE - bug fixed
Test: manual - presubmit
Change-Id: Ie371fa45cadceaf51cf184b446df9123ef27c337
2025-02-12 13:43:34 -08:00
Ahmed Fakhry 2289c28f7f Notify with onIsInDesktopModeChanged()
This CL renamed `onDesktopVisibilityChanged()` to
`onIsInDesktopModeChanged()` and adds a parameter for the display ID
on which the change is taking place.

When the multiple desktops flags are disabled, the behavior should
remain exactly as it is today; `onIsInDesktopModeChanged()` is
triggered only for the `DEFAULT_DISPLAY`, and when the same old
conditions occur.

Bug: 394685645
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I31658b1b7932c787ebd430cee7e5c99bdd01e8c9
2025-02-12 21:18:54 +00:00
Ahmed Fakhry ad6fee6111 Implement isInDesktopMode*()
This CL does the following:
- Adds new methods `isInDesktopMode()` and
  `isInDesktopModeAndNotInOverview()` to `DesktopVisibilityController`.
- These two methods rely on the new multi-desks impl when the flags are
  enabled.
- Makes the existing `areDesktopTasksVisible()` and
  `areDesktopTasksVisibleAndNotInOverview()` private, and migrates all
  the usages to the new methods.
- The new methods uses the old methods if the flags are disabled.

A companion NexusLauncher CL is at ag/31601363.

Bug: 394182435
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I29ff38f984bfe2f68a120f84e1a75fa36b739258
2025-02-12 21:18:51 +00:00
Treehugger Robot 4425ab3062 Merge "Moving InvariantDeviceProfile to Dagger" into main 2025-02-12 12:44:44 -08:00
Treehugger Robot 6c33393fe3 Merge "Revert "Refactor all uses of DisplayController singleton INSTANCE"" into main 2025-02-12 12:34:41 -08:00
Sunny Goyal c864281f3c Revert "Refactor all uses of DisplayController singleton INSTANCE"
Revert submission 31490053-DisplayControllRefactorForCD

Reason for revert: Leak is displayProvider

Reverted changes: /q/submissionid:31490053-DisplayControllRefactorForCD

Change-Id: Ib65150cdde765be009b5c4ce960f9fe025de9e60
2025-02-12 10:27:18 -08:00
Treehugger Robot fb683dff89 Merge "Refactor all uses of DisplayController singleton INSTANCE" into main 2025-02-12 05:47:46 -08:00
Will Osborn 5f8b6206ce Refactor all uses of DisplayController singleton INSTANCE
And make DisplayController display id aware

Test: locally tested on Tangor
Flag: EXEMPT refactor
Bug: 392858637

Change-Id: I805cd7323c48a2988c95b9fda7f6cfe4c153860c
2025-02-12 10:46:34 +00:00
Treehugger Robot 97d837e8b8 Merge "Converting LauncherIcons to kotlin" into main 2025-02-11 16:32:22 -08:00
Owner Cleanup Bot b0a7ca0dbb [owners] Remove zakcohen@google.com from src/com/android/launcher3/widget/picker/OWNERS
This suggested change is automatically generated based on group
memberships and affiliations.
If this change is unnecessary or in error, vote the lowest CR value
(i.e. reject the CL) and the bot will abandon it. Vote the highest CR to
approve this change. You may also abandon this change.

See the owner's recent activity for context:
https://android-review.googlesource.com/q/zakcohen@google.com

To report an issue, file a bug in the Infra>Codereview component.

Change-Id: Ibb729a15daafdf804c57c080a72ab8004f6861a0
2025-02-11 16:02:48 -08:00