Commit Graph

6808 Commits

Author SHA1 Message Date
shamalip
bb86bde284 Widget Picker: Update data layer to support shortcuts
Adds sealed class for widget info that can contain either appwidget info
or shortcut info.

Also kept the aosp config.xml empty to keep everything eligible for
 featured

Bug: 370950552
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Open picker for homescreen and lockscreen hosts
Change-Id: Iceafc2c1234063b16421f90bf00cf96114e9870c
2025-06-08 20:10:53 +00:00
Shamali Patwa
a4add54457 Merge changes from topic "no-widget-msg" into main
* changes:
  WidgetPicker: Pass no widgets available message to widgets list
  WidgetPicker: Implement no widgets available message
2025-06-06 11:52:00 -07:00
Anushree Ganjam
935abda722 Merge "Move TaskbarModelCallback, TaskbarViewCallback , TaskbarOverlayContext to dagger." into main 2025-06-06 09:33:05 -07:00
Anushree Ganjam
e4a59b06a1 Move TaskbarModelCallback, TaskbarViewCallback , TaskbarOverlayContext to dagger.
Delete the resource id : search_session_manager_class, taskbar_model_callbacks_factory_class, taskbar_view_callbacks_factory_class, taskbar_overlay_context_factory_class from config.xml.

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I7d571eeaba1f707089b2e4e0599051910927e3f2
2025-06-05 15:25:32 -07:00
Saumya Prakash
3ec143f029 Update All Set page to expressive style
This change sees the All Set page at the end of the Setup wizard be
redesigned to match the expressive theme. Changes include background,
fonts, and overall style.

Fix: 390550173
Test: Run SUW with a device that has the expressive theme enabled for
SUW
Flag: EXEMPT bugfix

Change-Id: I335b62d34a0587d8b5bba7f86dcc0670ec248ada
2025-06-05 10:23:03 -07:00
shamalip
dfe273543f WidgetPicker: Implement no widgets available message
- Shows an error message when there are no widgets to show.
- Also adds a spacer item for edge padding to offset floating toolbar.

Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Test changes
Change-Id: I89e78a9dafc23bb02be13e6fde08971835ff18f0
2025-06-05 13:50:48 +00:00
Suhua Lei
ed4437f152 Update the transparency of AddDesktopButton
Bug: 413461696
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: manual
Change-Id: Id2d16c4f0b7065f588bb6d45749c2e3aa2dd0981
2025-06-03 14:30:13 -07:00
Shamali Patwa
f8d3d932d3 Override the picker theme colors to map to resources in launcher
Text styles at the moment uses default tokens, but can be replaced in follow up.

Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: I91764c5aca3daa729c89882f653bb0f088248170
2025-06-03 06:00:40 -07:00
Treehugger Robot
a6bab0b412 Merge "Updating launcher preview generation" into main 2025-05-30 19:19:38 -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
Treehugger Robot
e0a2abda93 Merge "Update Scrim values for blur" into main 2025-05-30 13:55:44 -07:00
Vinay Joglekar
7e38e8a089 Update Scrim values for blur
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
2025-05-30 19:20:40 +01:00
Shamali Patwa
cddba00520 Merge changes from topic "widget-picker-launcher" into main
* changes:
  Add dagger2-compiler to some of picker module targets.
  Add no-op widget picker module to some test modules / graphs.
  Wire the compose based widget picker in widget picker activity
  Repository and datasource implementations backing the widget picker.
  Add widget picker module dependency to launcher when compose is enabled
  Open widget picker activity instead of full sheet when refactor flag is on
2025-05-30 04:18:55 -07:00
Toni Barzic
23fdd4224f Use pixels as breakpoints for non-desktop grid sizes
Effectively reverts CL:33454986 and adds float min device width/height
attributes that specify dimensions as number of dp. Currently, dp
dimensions are only used for desktop devices.

Test: Existing tests
Bug: 375643744
Flag: com.android.launcher3.enable_scalability_for_desktop_experience
Change-Id: I8a2bb3b9e6f97987fb25db553fc628d30cd3bf7c
2025-05-29 16:02:03 -07:00
Bill Yi
e433e87589 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1455a7cd0600354dcf903c2cdf75c20e694bd19c
2025-05-29 01:04:05 +00:00
Shamali Patwa
8e1ac2de44 Repository and datasource implementations backing the widget picker.
Bug: 408283627
Flag: EXEMPT independent module
Test: Existing tests
Change-Id: I0f0b68c25f416c8494f363ecc93a388570f8dfa6
2025-05-28 16:49:18 -07:00
Pat Manning
5d822e00fc Merge "Update spring constants for expressive dismiss." into main 2025-05-28 06:59:52 -07:00
Shamali Patwa
021c13c172 Extract widget picker intent extras in WidgetPickerActivity
This change refactors activity to move base activity to launcher3

This is to prepare for using it for launching widget picker for
homescreen and use compose.

Bug: 408283627
Flag: EXEMPT independent module
Test: Manual
Change-Id: I271748fb73b3691ba4d046ac8aceb51c4c8aea55
2025-05-27 17:21:31 -07:00
Pat Manning
a0b7dde91c Update spring constants for expressive dismiss.
- Add separate horizontal spring constants for tablets.

Fix: 391101706
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I689b44697be3e5d7909f9f1238359ca529e917f0
2025-05-27 11:26:40 +01:00
Sunny Goyal
ca7fe2f56c Adding support for custom signature for grid customization
Bug: 403628674
Flag: EXEMPT flagging not supported
Test: Verified manually
Change-Id: I009cc3814c593b2906acd05cb19391cacc5fbaaa
2025-05-23 16:31:59 -07:00
Bill Yi
8697ac2362 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-23 11:29:13 -07:00
Treehugger Robot
2a4ad7f8a1 Merge "Share buttons change" into main 2025-05-23 08:47:09 -07:00
Vinay Joglekar
0b87a41376 Share buttons change
Update Share Button and Share Targets to support Blur background

Fix: 408439461
Test: Open chrome with a webpage, tap on smart chip
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: If9290676377a3a48a94800ac3084c52146b0c9ae
2025-05-23 09:48:40 +01:00
Treehugger Robot
70f5d5738e Merge "Implement spec to configure all apps height" into main 2025-05-22 19:13:37 -07:00
Bill Yi
85d8ef0b87 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2e7f55ec048bd9154783bb0a8b68208160a5509e
2025-05-22 22:03:41 +00:00
Treehugger Robot
091890adbc Merge "Support workspace cells with two-line labels" into main 2025-05-21 18:25:15 -07:00
Toni Barzic
3bd1f20e3b Implement spec to configure all apps height
Adds AllAppsSpec support, that can configure all apps height so the
container top aligns with the top of a row in the workspace grid.

Bug: 30153091
Flag: com.android.launcher3.enable_scalability_for_desktop_experience
Test: Manual

Change-Id: Ia5c939c7d3b6fed29a9c2f47233348a5e55b570f
2025-05-21 22:04:33 +00:00
Toni Barzic
83b8cc19ca Support workspace cells with two-line labels
Adds `maxLineCount` attribute to CellSpec. The attribute indicates the max
number of lines of text the cell was speced to support. It's used to:
*   enable two-line labels in `BubbleTextViews` for workspace (including
    folder children) items
*   Update cell dimension calculation to inform cell vertical padding

When calculating cell content size the icon text size will be included
`maxLineCount` times, so the cell content gets centered as if it
contains `maxLineCount` lines of text. That way the icon position will
be consistent between cells with text that fits into one line, and cells
that contain two lines of text.

Adds `maxLineCountMatchesWorkspace` attribute to specify that the cell
should inherit `maxLineCount` from workspace cell spec.

Bug: 30153091
Flag: com.android.launcher3.enable_scalability_for_desktop_experience
Test: Manual

Change-Id: I150a62f427a0ad755a4746a736d9846d3bea4d2e
2025-05-21 22:04:33 +00:00
Sebastián Franco
e010d8f654 Merge "launcher: Remove allow rotation setting from indexable settings" into main 2025-05-20 17:04:02 -07:00
Treehugger Robot
432a419d4f Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-20 16:11:42 -07:00
Treehugger Robot
9977ef7c2a Merge "Update Empty State to support Blur background" into main 2025-05-20 02:17:40 -07:00
Bill Yi
13bf828a27 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9b8d0ca663aeb20227f2b5b55949a57e3de317c4
2025-05-19 19:25:56 +00:00
vinayjoglekar
c66cc78eca Update Empty State to support Blur background
Updated icon and text font as well as scrim values to make the text and
icon visible in both themes and different wallpapers.

Fix: 408437743
Test: Go to overview in empty state(no tasks)
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Ic76d25f4a70bffa402950fc4c3c3fade32c66c2b
2025-05-19 15:48:24 +01:00
Alex Chau
13d1b07304 Merge "Reland "Recreate Launcher activity when blur enabled changes"" into main 2025-05-19 07:03:27 -07:00
Sebastian Franco
52c77ba8c2 launcher: Remove allow rotation setting from indexable settings
Fix: 407675825
Flag: com.android.launcher3.one_grid_specs
Test: SettingsIndexablePreferenceKeysTest
Change-Id: I5ba3df68c375cf00a604e3b30a47f28acc91165d
2025-05-18 11:08:05 -07:00
Charlie Anderson
821440846f Merge "Update new filled shortcut icons to also be rounded" into main 2025-05-16 07:30:17 -07:00
Alex Chau
557d8e6d7f Reland "Recreate Launcher activity when blur enabled changes"
- When battery saver changes, WallpaperThemeManager always recreate activity to reapply theme base on wallpaper color hint changes
- Battery saver change can also result in light/dark theme changes, for which WallpaperThemeManager also recreate activity to apply theme changes
- As a result, it'll be much simpler to recreate activity whenever isBlurEnabled changes
- Exposed recreateToUpdateTheme API from WallpaperThemeManager to achieved this
- Greatly simplified Overview styling to read from styles

Reland fix:
- Removed mBlursEnabled in BaseDepthController, and only use `mCrossWindowBlursEnabled` to control swapping between blur style and fallback style
- Temporary variables like `mPauseBlurs` and `hasOpaqueBg` should only affect if blurs are applied, but not result in swapping of blur style, otherwise this cause unnecessary redraw or activity recreate

Reason for revert: reland
Reverted changes: /q/submissionid:33581402-revert-33554447-b/414789280-CTVRJLPLRT
Bug: 414789280
Test: manually toggling battery saver and light/dark theme and WallpaperThemeManagerTest
Test: PressBackFromLaunchedApp.testPressBackFromLaunchedApp
Flag: EXEMPT bugfix

Change-Id: Iac2b0c00811e0e79684da0cf77df76a120c1272a
2025-05-16 12:33:44 +01:00
Alex Chau
38efd382b7 Merge "Revert "Recreate Launcher activity when blur enabled changes"" into main 2025-05-15 13:07:22 -07:00
Priyanka Advani (xWF)
1f891a6b67 Revert "Recreate Launcher activity when blur enabled changes"
Revert submission 33554447-b/414789280

Reason for revert: Droidmonitor created revert due to b/417614196. Will be verifying through ABTD before submission.

Fix: 417614196

Reverted changes: /q/submissionid:33554447-b/414789280

Change-Id: Idf349cd39a3f86910f597f0f9ab4d46fb03e945c
2025-05-15 11:12:05 -07:00
Alex Chau
b7dd7bf1e0 Merge "Recreate Launcher activity when blur enabled changes" into main 2025-05-15 06:07:58 -07:00
Treehugger Robot
753ee52a18 Merge "Support desktop device category in grid options" into main 2025-05-14 13:30:52 -07:00
Charlie Anderson
94be23e91b Update new filled shortcut icons to also be rounded
Bug: 417500105
Flag: com.android.launcher3.enable_launcher_visual_refresh
Test: screenshot tests
Change-Id: Iff6ede54560f3c75b4cafc04d0b4dd18fdfd7b6c
2025-05-14 13:14:37 -07:00
Treehugger Robot
e5b2d2ca1b Merge "Updates Material Color Library" into main 2025-05-14 10:38:59 -07:00
Liran Binyamin
0854a5b7f7 Merge "Update long press menu bubble icon" into main 2025-05-14 09:50:02 -07:00
Alex Chau
a6fa3db580 Recreate Launcher activity when blur enabled changes
- When battery saver changes, WallpaperThemeManager always recreate activity to reapply theme base on wallpaper color hint changes
- Battery saver change can also result in light/dark theme changes, for which WallpaperThemeManager also recreate activity to apply theme changes
- As a result, it'll be much simpler to recreate activity whenever isBlurEnabled changes
- Exposed recreateToUpdateTheme API from WallpaperThemeManager to achieved this
- Greatly simplified Overview styling to read from styles

Bug: 414789280
Test: manually toggling battery saver and light/dark theme and WallpaperThemeManagerTest
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I90ad724867283fe3c62a9073a6e072491533f774
2025-05-14 17:45:04 +01:00
Marcelo Arteiro
7004d3410d Updates Material Color Library
Following 2025 Specifications
 - updates Variant
 - adds a few tokens
 - Removes deprecated Fidelity attribute

Bug: 394371316
Bug: 347286986
Test: Presubmit
Flag: android.os.material_colors_2025_03
Change-Id: Ieb22815cd8a5a898c740849158c639dcff48086d
2025-05-14 08:00:52 -07:00
Bill Yi
3e79ab7644 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-13 19:02:21 -07:00
Liran Binyamin
d15fa79617 Update long press menu bubble icon
Updated roundedness to 100 for material 3

Bug: 416296666
Flag: com.android.wm.shell.enable_create_any_bubble
Test: EXEMPT icon change

Change-Id: Ie14cb285de5d97e1f9e1837cb23ddc717406d14d
2025-05-13 10:13:23 -04:00
Bill Yi
b14404525e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id6a76958a1ce83fad97729f346155885bf38b67d
2025-05-13 05:03:21 +00:00