Commit Graph

5828 Commits

Author SHA1 Message Date
Lucas Dupin 0d8883469c Merge "Updating materialColorSurfaceContainerHighest color access" into udc-qpr-dev am: 6a925d0769
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23917471

Change-Id: Ia940de6f17a4ab9a49aad38a8699bfbcfa9fd5cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-07 03:16:48 +00:00
Andrew Cole fe0a3b41d8 Updating materialColorSurfaceContainerHighest color access
For any view files applying the WidgetConatinerTheme via widgetsTheme they were incorrectly inheriting themes and skipping the AppTheme provided but only in light mode. In dark mode the WidgetContainerTheme.Dark was correctly inheriting the theme.

To avoid a risky theme update for all widgetsThemes we just modify the color accessor to use @color instead of ?attr as these colors should not be attributes AFAIKT

Bug: b/289305591
Test: Follow repro steps on the bug for smartspace
Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
2023-07-06 12:21:21 -07:00
Brandon Dayauon 69be4ccd17 Merge "Fix prediction row title consistency" into udc-qpr-dev am: aa9332af88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23815838

Change-Id: I38ea618a57778e567608de1c5ecbc8e76d02030c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 22:38:46 +00:00
Brandon Dayauon aa9332af88 Merge "Fix prediction row title consistency" into udc-qpr-dev 2023-06-29 21:45:40 +00:00
Mateusz Cicheński 710b4c44e1 Merge "Remove the keep clear areas XML tag from Hotseat" into udc-dev am: 665524cc37 am: 1f113855f4 am: ea4fb36690
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23823197

Change-Id: I8b0a0951a8e4e6e1322274cd8c3612f843347418
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 19:52:10 +00:00
Mateusz Cicheński 865b576cf4 Merge "Remove the keep clear areas XML tag from Hotseat" into udc-dev am: 665524cc37 am: 1f113855f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23823197

Change-Id: I65ba5c1fbd64c88ff4e67534e42e453320d45a80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 19:05:12 +00:00
Mateusz Cicheński ea4fb36690 Merge "Remove the keep clear areas XML tag from Hotseat" into udc-dev am: 665524cc37 am: 1f113855f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23823197

Change-Id: I50b0b0ca9e82dd33d5c64dec1352fc4b86db1665
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-29 19:02:51 +00:00
Brandon Dayauon f2ea399ec6 Fix prediction row title consistency
There's an inconsistency with prediction row in 0-state and all apps page.
This happens because we change the number of lines (to 1 line) after calculating and rendering the two lines.
Which is why if you look at the photos, in all apps, Amazon app just shows "Amazon" instead of "Amazon Sh.."

Instead of changing the number of lines after processing, just set a separate display to the prediction app row

bug:288811197
Flag: teamfood
Test: manual - locally added test BubbleTextView
before 0-state: https://screenshot.googleplex.com/5q9iYypgwwtDa8b
before allapps prediction row: https://screenshot.googleplex.com/BVxGMTT43stDzZ9
after allapps prediction row: https://screenshot.googleplex.com/BfNTFPXwf4FHuRN

Change-Id: Ifefe6dc8dd4a117be7b63f92ff837d0467a51f8b
2023-06-28 14:45:07 -07:00
Mateusz Cicheński b5b218eea9 Remove the keep clear areas XML tag from Hotseat
It reports its size through SystemUiProxy and this tag causes it to
report the region twice. Additionally upon screen rotation the value
is getting updated with a delay, so for a moment two keep clear areas
for Launcher are present - one from the previous orientation (on the
side), and one from the current orientation (matching the proxy value
in unrestrictedKeepClearAreas).

Bug: 285242520
Test: before http://recall/-/ekEuGtt9d9HWqkUtAzpHx8/cLtiXGYUyItm2kNCCEkkWA
Test: after http://recall/-/ekEuGtt9d9HWqkUtAzpHx8/iPs6fwdSXG3TE0IERmxA8
Change-Id: I40dfe08680c944f2be5db0f6b15515492f409565
2023-06-27 02:58:26 +00:00
Bill Yi cef317a762 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I547d78a7d45a8a7efdb2c1bb41c791fdd7bc1f3e
2023-06-23 09:41:48 -07:00
Federico Baron bc9e67c3bd Merge "Fix padding/margin for widgets in widgetpicker" into udc-qpr-dev am: 522665d2a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23752205

Change-Id: I37d6cdaf25528b7afdbb6f178c2f201191b06d85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 20:35:29 +00:00
Federico Baron 4848f89ad4 Merge "Revert "Fix padding/margin for widgets in widgetpicker"" into udc-qpr-dev am: c37899ecbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23752204

Change-Id: Id7e1bd4b5810692a5f496cd792e70b8813bb60e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 20:35:26 +00:00
Federico Baron 522665d2a4 Merge "Fix padding/margin for widgets in widgetpicker" into udc-qpr-dev 2023-06-21 19:57:17 +00:00
Federico Baron c37899ecbd Merge "Revert "Fix padding/margin for widgets in widgetpicker"" into udc-qpr-dev 2023-06-21 19:57:17 +00:00
Jordan Silva 7b2c02f12e Merge "Update DeviceProfile to calculate responsive grid for folders" into udc-qpr-dev am: 54cfc5ea04
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23658954

Change-Id: I1ede028ee900b114aa1b840e3b872be1222678a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 14:57:49 +00:00
Jordan Silva 637f4eb2f3 Update DeviceProfile to calculate responsive grid for folders
It uses the new responsive folder calculations and specs when responsive grid is enabled. The grid has to have folderSpecsId defined to use the new specifications, otherwise it will use the current scalable grid implementation.

Fix: 284155638
Test: DeviceProfileDumpTest
Test: ResponsiveHomeScreenFolderImageTest
Test: HomeScreenFolderImageTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: I535cff4bb00e969f782447a898230fe2b2c05cc9
2023-06-21 12:18:58 +01:00
Jordan Silva ab04ddb59c Merge "Decrease icon size by steps" into udc-qpr-dev am: 03951ba556
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23563380

Change-Id: I58843eeaa4faa38f786e7841203e5e00c9f5ef29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-21 10:39:48 +00:00
Jordan Silva 03951ba556 Merge "Decrease icon size by steps" into udc-qpr-dev 2023-06-21 10:12:30 +00:00
Bill Yi 6d701913d9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ida888864c2129b6f52b8e3e850d982a40b0e2a33
2023-06-20 20:24:01 -07:00
Thales Lima 2759aa345b Decrease icon size by steps
When the icon can't fit the cell size, decrease it by steps defined by UX until it fits or reach a minimum size.

Fix: 283929701
Test: DeviceProfileAlternativeDisplaysDumpTest
Test: DeviceProfileResponsiveAlternativeDisplaysDumpTest
Test: IconSizeStepsTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: I2875b669c0a24ecd1c4d785a33e2cffb78c9fe76
2023-06-20 20:37:38 +01:00
fbaron 05e428d6f7 Fix padding/margin for widgets in widgetpicker
Fix: 287079143
Test: Verify that the there's enough margin in between widgets and their container in widget picker
Change-Id: Ia0a7a43516554d113f011b8ac45afbf5e068ca37
2023-06-20 11:57:56 -07:00
Federico Baron c8aeb682cc Revert "Fix padding/margin for widgets in widgetpicker"
This reverts commit 3cc8de1268.

Reason for revert: when adding this extra margin to widget_cell it has the unintended effect of making text width available for the widgets shorter than it originally was (E.g Dynamic Colors becomes Dynamic Co...). Adding padding to widgets_table_container.xml instead seems to be a better solution to this issue.

Change-Id: I90b850a43aca573a26131a96d5d8f5fbde8b5f6e
2023-06-20 18:57:17 +00:00
Treehugger Robot 10d035e7fa Merge "Add a hint to align changes between taskbar and divider bar" into udc-dev am: 2095736367 am: a824567e34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23726783

Change-Id: I40a40b2f65e397fb09e6041b8af574272200b80b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 16:56:50 +00:00
Treehugger Robot 2f1132a094 Merge "Add a hint to align changes between taskbar and divider bar" into udc-dev am: 2095736367 am: a824567e34 am: aa2749cb49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23726783

Change-Id: I8a1c9d9e65cee09d9bc73aeb68aa5092bf1aecd8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-19 07:22:08 +00:00
Treehugger Robot aa2749cb49 Merge "Add a hint to align changes between taskbar and divider bar" into udc-dev am: 2095736367 am: a824567e34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23726783

Change-Id: I4f7aa0a5058f3ae7dbd1b42c3503828f39947cec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-19 06:39:05 +00:00
Jordan Silva accb40ad2c Merge "Implement calculations of Responsive Grid for AllApps" into udc-qpr-dev am: 1af98745f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23468196

Change-Id: Ibfcff78b4e42a70b6e937c1a41d816b1755975ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 17:42:41 +00:00
Thales Lima abfe364629 Implement calculations of Responsive Grid for AllApps
All Apps follow the same sizes as the workspace, so we copy the measurements to AllApps values.

Bug: 284152932
Test: HomeScreenAllAppsImageTest
Test: DeviceProfileDumpTest
Test: HomeScreenResponsiveAllAppsImageTest
Test: DeviceProfileResponsiveDumpTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: I12743a6ac5ab5f1a8bc911511bdc7e12b2261d86
2023-06-16 10:19:19 +00:00
Jerry Chang f6d1fa816f Add a hint to align changes between taskbar and divider bar
Bug: 276468017
Test: pass existing tests
Change-Id: I253a582749b39a28194286e69a4a96bae2a0cf36
2023-06-16 09:53:10 +00:00
Lucas Dupin fbe96507dd Merge "Merge "Fixing color mismatch for Launcher3/NexusLauncher" into udc-dev am: d469ce2460 am: e3f46ba90b" into udc-qpr-dev 2023-06-15 20:15:11 +00:00
Federico Baron a34bd09bca Merge "Fix padding/margin for widgets in widgetpicker" into udc-qpr-dev am: d7eb90c4b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23696295

Change-Id: I95f7fb4c13760832a667992ba941167b0068bc58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 17:47:02 +00:00
Marcelo Arteiro d7d49ad4b3 Merge "Fixing color mismatch for Launcher3/NexusLauncher" into udc-dev am: d469ce2460 am: e3f46ba90b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23102625

Change-Id: Iab06fa739fb16e399931ca90ebb2cfdf7afdd738
Merged-In: Iab06fa739fb16e399931ca90ebb2cfdf7afdd738
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 22:25:51 +00:00
fbaron 3cc8de1268 Fix padding/margin for widgets in widgetpicker
Fix: 287079143
Test: Verify that the there's enough margin in between widgets and their container in widget picker
Change-Id: I6c8cbf075541d6db734fbbc5c0e2386b41c7edac
2023-06-14 11:27:48 -07:00
Thales Lima eae6605815 Merge "Create AllApps responsive spec" into udc-qpr-dev am: 961e683187
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23616576

Change-Id: I8b0c9b2bdaad6a42d994956e552149fe72bf9458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 17:26:50 +00:00
Thales Lima 196e44baec Create AllApps responsive spec
Copy the parser from WorkspaceSpec and modify to use AllApps attributes.

Bug: 284152932
Test: AllAppsSpecsTest
Test: CalculatedAllAppsSpecTest
Flag: ENABLE_RESPONSIVE_WORKSPACE
Change-Id: I9362e126c64cb1a1abdef61894b003f14701b8e3
2023-06-14 15:02:58 +01:00
Jordan Silva c399c64c9d Merge "Update SizeSpec attributes to accept max size threshold" into udc-qpr-dev am: 296a9f3389
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23663164

Change-Id: If0895d97df4eb86ee3f54dec5cbbe8308381d15d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 11:08:57 +00:00
Brian Isganitis c3320641bf Merge "Support zero-state suggestions in Taskbar All Apps." into udc-qpr-dev am: cca18d8028
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23376941

Change-Id: Ieed03c33837e85cc1002ed39d54be55e647167d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 11:04:21 +00:00
Jordan Silva 3bc3d627bc Merge "Add FolderSpec for responsive grid support" into udc-qpr-dev am: b1dc7718be
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23586620

Change-Id: I04fe8d4a63971d9b1d0e2956157a8e3a2a46ddfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 11:03:45 +00:00
Jordan Silva 296a9f3389 Merge "Update SizeSpec attributes to accept max size threshold" into udc-qpr-dev 2023-06-14 09:37:42 +00:00
Treehugger Robot 2cf123ac6a Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-06-14 03:32:14 +00:00
TreeHugger Robot 0a13b2de85 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev 2023-06-13 19:58:54 +00:00
Brian Isganitis cca18d8028 Merge "Support zero-state suggestions in Taskbar All Apps." into udc-qpr-dev 2023-06-13 18:26:36 +00:00
Jordan Silva 1b336110a4 Update SizeSpec attributes to accept max size threshold
Add maxSize attribute to SizeSpec to limit the cell size up to a max size when matchWorkspace is true. The same validation was added when using fixedSize, ofAvailableSpace and ofRemainderSpace, so they could have a maxSize as a threshold.

Bug: 284155638
Flag: ENABLE_RESPONSIVE_WORKSPACE
Test: SizeSpecTest
Test: WorkspaceSpecsTest
Change-Id: I113657c241e6618eb3e501243412d8c5626fc3d5
2023-06-13 18:09:37 +01:00
Jordan Silva 7ae9e3a6f5 Add FolderSpec for responsive grid support
Adds responsive grid implementation for folders. It follows the same concept as WorkspaceSpecs, so we have a parser similar to WorkspaceSpecs for FolderSpecs.

Bug: 284155638
Flag: ENABLE_RESPONSIVE_WORKSPACE
Test: FolderSpecsTest
Test: CalculatedFolderSpecsTest
Change-Id: Iea6d7d88ef42d1273aed7cf2ed5b397035518a52
2023-06-13 15:01:39 +01:00
Marcelo Arteiro e453ab07a2 Merge "Fixing color mismatch for Launcher3/NexusLauncher" into udc-dev am: d469ce2460 am: 4b00969221 am: a842fe68a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23102625

Change-Id: I8239ae5bd926c2f05a1126977824aae52c188539
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-13 13:28:04 +00:00
Marcelo Arteiro a842fe68a9 Merge "Fixing color mismatch for Launcher3/NexusLauncher" into udc-dev am: d469ce2460 am: 4b00969221
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23102625

Change-Id: I6292486078f357385804b68101bf0d52d440e387
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-13 12:50:17 +00:00
Marcelo Arteiro 4b00969221 Merge "Fixing color mismatch for Launcher3/NexusLauncher" into udc-dev am: d469ce2460
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23102625

Change-Id: Ic2a18340746e34aab44966361bd56d63b79c13b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-13 12:24:55 +00:00
Bill Yi 7bccc1b9cb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5d9c7a4cb39e1841b86a554fd38704694e2371e8
2023-06-12 20:15:32 -07:00
Bill Yi dc937f36cb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47d8e1916d1e0021e322f404d6121f11fd5357eb
2023-06-12 10:27:58 -07:00
Brian Isganitis d478b1464e Support zero-state suggestions in Taskbar All Apps.
Test: manual
Bug: 216683257
Flag: ENABLE_ALL_APPS_SEARCH_IN_TASKBAR
Change-Id: I016d4e4e6a096ca4f5bd65fcda1bf24a444459f4
2023-06-12 17:19:16 +00:00
Jordan Silva fd36986ae5 Merge "Adding match workspace to SizeSpec for responsive grid support" into udc-qpr-dev am: d22a85cd64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23587361

Change-Id: I42622131302d1e34bb7d7c52029bcc7094626c9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 20:51:40 +00:00