Ana Salazar
501df846c4
Support desktop device category in grid options
...
Adds desktop enum value to grid option deviceCategory attribute type.
The device type is used for devices that have
`R.bool.desktop_form_factor` config value set.
Bug: 30153091
Flag: com.android.launcher3.enable_scalability_for_desktop_experience
Test: Manual
Change-Id: Ie4747b5bae3e124e914af51445778c9b6285ff66
2025-05-13 04:17:34 +00:00
Jagrut Desai
7c2a76b499
Merge "Fix TaskbarAllApps Icon" into main
2025-05-12 16:58:46 -07:00
Treehugger Robot
d89bd8d886
Merge "Split BlurStyle and BlurFallbackStyle for All Apps and Overview." into main
2025-05-12 14:02:09 -07:00
Jagrut Desai
bc28b98b8f
Fix TaskbarAllApps Icon
...
Test: Manual, UX
Bug: 415836854
Flag: EXEMPT bugfix
Change-Id: I8b305ce35e0a6b73559f73083a0ca9b025043e8c
2025-05-12 10:46:57 -07:00
Treehugger Robot
247d720fec
Merge "Revert "Use custom height for all apps for CD"" into main
2025-05-12 02:23:03 -07:00
Ajinkya Chalke
3f651657f7
Revert "Use custom height for all apps for CD"
...
This reverts commit 0c32760b3c .
Reason for revert: Issue on smaller screen b/416220478#comment7
Bug: 416220478
Change-Id: I8b1063a1ebc8b250e41d2587399647a589ef05b8
2025-05-10 13:50:33 -07:00
Treehugger Robot
0a38582ff6
Merge "Use dimen for GridSize_minDeviceWidth/Height" into main
2025-05-09 20:47:49 -07:00
Andy Wickham
359280ef2c
Split BlurStyle and BlurFallbackStyle for All Apps and Overview.
...
Problem: We don't want to apply the blur style to All Apps if the
all_apps_blur flags are disabled. However, we want to still apply
the relevant colors for Overview when the Overview blur is enabled.
Solution: Split the styles into All Apps and Overview variants.
Unfortunately this creates quite a bit of extra code, but such is
the nature of flag permutations.
This is a more comprehensive color fix compared to ag/33356345,
which is reverted as part of this CL.
Note: enable_overview_background_wallpaper_blur is already broken
when disabled without this change (the live tile gets blurred),
presumably because it's already in nextfood and hasn't been tested
disabled. As such, I focused on testing All Apps blur flags both
enabled and both disabled, with the Overview flag always enabled.
Demo with All Apps flags disabled:
- Blurs enabled (Overview should blur; All Apps unaffected):
https://drive.google.com/file/d/1eb882JKSMF-Irc7Ls-iAClYfJIASzzXs/view?usp=drive_link&resourcekey=0-j5EafBfVHIh5oOSFzsYE4g
- Blurs disabled (Overview should not blur; All Apps unaffected):
https://drive.google.com/file/d/1toVHYUTj9FjpXCD7m8waeuFIwBbdy_Am/view?usp=drive_link&resourcekey=0-drqPVsELmgJVxhpgxLc-aQ
Demo with All Apps flags enabled:
- Blurs enabled (Overview and All Apps should blur):
https://drive.google.com/file/d/1se5yaPDYdDKcoBjZSjDSlqCiSfX0bmHv/view?usp=drive_link&resourcekey=0-U9fBJSVYY9na9r8J5xHXMw
- Blurs disabled (Overview and All Apps should not blur):
https://drive.google.com/file/d/1YmqlCdSJDZXGSgpeO5hk16V8Y-6tVpeW/view?usp=drive_link&resourcekey=0-rK4Zy7D8fFyPMA_1XXxwCQ
(Note: All Apps fallback colors will change with ag/33405653)
Test: Above videos
Fix: 416248709
Flag: com.android.launcher3.all_apps_blur
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I9b5cf6b0dce4014053b27ea95a91d047262427b2
2025-05-10 01:21:43 +00:00
Ajinkya Chalke
0c32760b3c
Use custom height for all apps for CD
...
Bug: 416220478
Flag: com.android.window.flags.enable_taskbar_connected_displays
Test: m
Change-Id: I772c43cec98e5a2679324603bee128482c614e26
2025-05-09 01:14:15 +00:00
Toni Barzic
ff16a5912d
Use dimen for GridSize_minDeviceWidth/Height
...
Makes the grid size format more flexible, as it allows the min width and
height to be easily defined either as px, or dp (which may be
preferable for upcoming desktop grids - I noticed that scaling display
size may end up with too tightly packed grid when using pixel sizes
to select the correct grid size).
Test: Existing tests
Bug: 375643744
Flag: EXEMPT cleanup
Change-Id: I09b772ece177fe0539a1ff641ff2391e88d9e289
2025-05-08 10:20:54 -07:00
Bill Yi
a0910bcf27
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: Ibf99e2ac8809f353bc10cbf4be54a71d62606f5b
2025-05-06 21:28:03 +00:00
Sunny Goyal
55b5e41d8a
Merge "Removing Smartspace as a widget flag" into main
2025-05-05 10:01:05 -07:00
Bill Yi
ac48b8b3d3
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I1eed4123bfdbcfc64712de5f3f6463381fac0ec8
2025-05-01 23:42:04 +00:00
Sunny Goyal
7a332e02aa
Removing Smartspace as a widget flag
...
Bug: 300140279
Flag: EXEMPT removing dead code
Test: Presubmit
Change-Id: If24db0b4c2c119f5cbe1153e3d77599d12ff80a6
2025-05-01 16:00:04 -07:00
Andy Wickham
3a282d3c28
Remove dark mode Launcher3 colors for blur.
...
These were intended to be placeholders for non-quickstep builds,
but it seems soong ends up using the base version instead of the
override in quickstep. So now we always use the non-night version
which gets overridden correctly (and that color resource itself
defines a dark mode variant).
Test: mp launcherd - verify light and dark mode use themed colors.
Bug: 414732288
Flag: com.android.launcher3.all_apps_blur
Change-Id: I21bf8e66bf1715a8b3532931ed64725ccc3f86b9
2025-05-01 04:23:40 +00:00
vinayjoglekar
45cb055158
Apply fallback overview scrim, overviewactions and clearall in battery saver mode.
...
1. BlurFallbackStyle/BlurStyle will now be applied in Launcher startup.
When "updateBlurStyle" is called, individual element style's swap
happens as per blur style.
2. "hasOpaqueBg" background will now be checked in "applyDepthAndBlur"
for setting the "currentBlur" value.
Bug: 409758306
Test: Manual. go to overview, enable/disable battery saver mode.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Ic9030c2b267867b9124705426dd51deb1b30ca55
2025-04-30 17:23:42 +01:00
Treehugger Robot
d771ad1951
Merge "Import translations. DO NOT MERGE ANYWHERE" into main
2025-04-29 09:56:36 -07:00
Treehugger Robot
3bde3a8331
Merge "Update blur style for more things." into main
2025-04-28 13:51:25 -07:00
Bill Yi
66176dd9d6
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I87880bd7872d0ed4f2ffd8374e714beafb23d741
2025-04-28 18:47:30 +00:00
Andy Wickham
6610425a1d
Update blur style for more things.
...
- Quick Launch highlight (focusHighlight)
- Drag bar at top of All Apps
- Divider inside Private Space
Demo (enabling blur via adb in the middle):
https://drive.google.com/file/d/1MjYn1c1mz3m1llmJ-J6kLHUa1j3biv_H/view?usp=drive_link&resourcekey=0-6d1yf_4zDL0W9nTYe6HLNQ
Fix: 413143411
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: I37340759867aba1460fb038269d21c86e8b3c4f6
2025-04-26 01:25:05 +00:00
Brandon Dayauon
a51dbda452
Merge "Don't use gradient on game icon" into main
2025-04-25 14:52:46 -07:00
Treehugger Robot
fe7225eace
Merge "Move LauncherRestoreEventLogger to dagger" into main
2025-04-25 14:11:18 -07:00
Treehugger Robot
868eb7458f
Merge "Import translations. DO NOT MERGE ANYWHERE" into main
2025-04-25 13:43:08 -07:00
Treehugger Robot
703d6f6f55
Merge changes from topic "folder-arrows-pointer" into main
...
* changes:
Only Show Folder Arrows if Mouse or Trackpad is Connected to Device
Make Width Calculation Exact
2025-04-25 11:53:41 -07:00
Brandon Dayauon
3882fafedc
Don't use gradient on game icon
...
Changing this to regular game icon as gradient is not needed anymore.
bug: 409978022
Test: manually hsv: https://hsv.googleplex.com/5376677671600128
Flag: com.android.launcher3.nudge_pill
Change-Id: I47e07d5f5a728411b940a34b2408bfae3a1b89f2
2025-04-25 10:19:39 -07:00
Treehugger Robot
087c9c4cf6
Merge "Run task reflow after dismiss earlier and increase spring constants." into main
2025-04-25 09:47:03 -07:00
Pat Manning
dac05b0390
Run task reflow after dismiss earlier and increase spring constants.
...
This allows the user to dismiss multiple tasks in a row more quickly.
Fix: 409485085
Test: Manual. Fling to dismiss tasks as quickly as possible.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I9a0d05c1a47b5bc0ef72cde055379e4df50b48b4
2025-04-25 15:04:53 +01:00
Anushree Ganjam
06bc3f5301
Move LauncherRestoreEventLogger to dagger
...
Helps us to delete ResourceBasedOverride class.
Delete "launcher_restore_event_logger_class" resource from config.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Ia11162979f016513bd09e06796346d29699b2efd
2025-04-25 01:02:28 +00:00
Bill Yi
4417bed406
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I92dac24a6704f912df522fc623d26ae5dc11f092
2025-04-24 23:41:22 +00:00
Stefan Andonian
cffeb99122
Only Show Folder Arrows if Mouse or Trackpad is Connected to Device
...
Bug: 394355070
Test: Verified correct behavior locally. See screen recording on https://buganizer.corp.google.com/issues/394355070#comment28
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I7132b892b3bd8ee3af2cdca58b6e70f3a219c8f4
2025-04-24 13:59:21 -07:00
Anushree Ganjam
41998110bd
Move FolderNameProvider to dagger.
...
Helps us to delete ResourceBasedOverride class.
Delete "folder_name_provider_class" resource from config.
Introduce FolderNameSuggestionLoader for easy dagger injection for
folderNameProvider.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I58a68cb4ce11331458a1cccef2e692f74c14ea53
2025-04-22 19:31:51 +00:00
Anushree Ganjam
77f22bf9cf
Merge "Move StatsLogManager to Dagger" into main
2025-04-21 18:48:56 -07:00
Anushree Ganjam
291438aaec
Move StatsLogManager to Dagger
...
Helps us to delete ResourceBasedOverride class.
Delete "stats_log_manager_class" resource from config.
Delete unused "app_launch_tracker_class" resource from config.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I71ed7ffca62e7c74d4ee0d0b4c045ffed9599cfe
2025-04-21 19:13:22 +00:00
Bill Yi
9732823c1b
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I105f4b000deeded5238f7d5f75ba7c7236de2f9c
2025-04-21 01:12:52 +00:00
Treehugger Robot
bf044d730c
Merge "Move InstantAppResolver to Dagger." into main
2025-04-18 18:06:15 -07:00
Andy Wickham
303b52f84a
Merge "Make TaskbarOverlayContext overrideable." into main
2025-04-18 15:02:50 -07:00
Charlie Anderson
8ec6581db0
Merge "Update system shortcut icons to filled GM3 versions" into main
2025-04-18 13:20:51 -07:00
Anushree Ganjam
59d5401f59
Move InstantAppResolver to Dagger.
...
Helps us to delete ResourceBasedOverride class.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I9320e0309e2ae4370dcbf2f6f62d704712876bd5
2025-04-18 20:14:14 +00:00
Treehugger Robot
579672c0d8
Merge "Update All Apps colors to use shared sysui resources." into main
2025-04-17 20:00:20 -07:00
Andy Wickham
33c7b3dcf1
Make TaskbarOverlayContext overrideable.
...
Bug: 371343636
Flag: EXEMPT refactor
Test: with other change
Change-Id: I46c4bcb88d21890e66e7db7240d3450d75d74354
2025-04-18 01:24:56 +00:00
Andy Wickham
51a0a3829a
Update All Apps colors to use shared sysui resources.
...
This includes the new scrim color and panel treatment documented
here: https://docs.google.com/presentation/d/1BKFfB2LAIDoaA5aLs8did6IcUw_pktrSWI5xmypkl3s/edit?slide=id.g3484dcfffc6_1_203&resourcekey=0-HpXwztiEYGe0BYQzUeBBbQ#slide=id.g3484dcfffc6_1_203
Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: I810aaa84eda218ab33112c9a5c1561cdb088b310
2025-04-17 19:14:18 +00:00
Anushree Ganjam
87603a10e8
Introduce "qsb_container_hotseat" layout to override the existing search_container_hotseat.
...
This layout is no-op in AOSP.
Bug: 405166827
Test: Manual
Flag: com.android.launcher3.enable_qsb_on_hotseat
Change-Id: Ief142c3c141a672c5a4c53814b7901ff322ed053
2025-04-16 22:21:50 +00:00
Andy Wickham
16a024df71
Adds Blur and BlurFallback styles for All Apps.
...
Technically these styles can be used throughout Launcher, e.g.
Widget Picker and Folders, but this CL only applies it to All Apps.
At a high level, views wishing to apply transparency to show blur
should use these new attr values rather than colors directly.
When blur changes, e.g. starting or stopping battery saver, the
style is re-applied and revelant views are invalidated. For
Launcher, this is handled by DepthController, and for Taskbar it's
handled by a CrossWindowBlurListener.
Also updated the Private Space animation slightly to account for
the translucent decorators (specifically, we can't use the mask
view to cover them when blur is enabled).
Screenshots: https://drive.google.com/drive/folders/1tU472KHotgEBpT-Ec9VOBWPBf_YdVqv2?resourcekey=0-ebf7W8O6iDJ4UVMtRzTABg&usp=sharing
Private Space animations: https://drive.google.com/file/d/1h5pn8Xb17TPcbujr7uSAJNTq8kwNZoIp/view?usp=drive_link&resourcekey=0-TzpaJ16Gg8_QJctBx4oiIg
Private Space QS Tile animations: https://drive.google.com/file/d/1dCuqnqd5z2kSBEakGobMlEkMwFDBWRbJ/view?usp=drive_link&resourcekey=0-qRVFPb-a6OzaZQOf4x86Jw
Bug: 371343636
Test: Manual
Flag: com.android.launcher3.all_apps_blur
Change-Id: Ia9f581f50d1adc0830569656bdeb751deb710a9c
2025-04-15 16:42:56 -07:00
Charlie Anderson
c77791ba2e
Update system shortcut icons to filled GM3 versions
...
Flag: com.android.launcher3.enable_launcher_visual_refresh
Bug: 364950287
Test: manually and popup screenshot tests
Change-Id: I5e4c964b60a4254f9f67c8128e23f5b04b621541
2025-04-15 06:48:22 -07:00
Bill Yi
fafa179973
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I29552657cb57a7ebc7aa7e1331779d40d3ae5ef2
2025-04-15 04:18:39 +00:00
Treehugger Robot
12f5ccddd3
Merge changes from topic "pid-iv" into main
...
* changes:
Implement Folder Pagination Arrow Hover / Pressed UX
Moved PageIndicatorDots to their own ImageViews.
2025-04-14 16:45:35 -07:00
Brandon Dayauon
b570514ee0
Merge "Add nudgeView to Taskbar.xml" into main
2025-04-11 16:28:59 -07:00
Stefan Andonian
71170e9276
Implement Folder Pagination Arrow Hover / Pressed UX
...
Bug: 394355070
Test: Verified locally that everything works. Check out bug for video test.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: Ief4b895d8eb31e6ed53b05aad4b733e8de41e4d9
2025-04-11 16:02:04 -07:00
Stefan Andonian
c547affdc9
Moved PageIndicatorDots to their own ImageViews.
...
Previously, they were simply included in PageIndicatorDots via Canvas
drawing. This worked well to keep behavior encapsulated within
PageIndicatorDots class. But it didn't work for Accessibility Services
which require an actual view in order to focus properly.
Bug: 409629978
Test: Verified manually. See video on bug comment: https://b.corp.google.com/issues/394355070#comment23
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I212bf3dbee82e449088536fa841b02a3644df7d3
2025-04-11 16:00:12 -07:00
Brandon Dayauon
1fc6f916d3
Add nudgeView to Taskbar.xml
...
Aiai will send a broadcast to Launcher and will animate the stashHandleView and nudgeView accordingly.
Verified on large screen device that transient taskbar is not affected as its not in scope at the moment.
bug:409121556
Test: manual - video in bug
Flag: com.android.launcher3.nudge_pill
Change-Id: I740e5d81dd008a230aa089f311d38bac665fc227
2025-04-11 13:24:22 -07:00