Commit Graph

9844 Commits

Author SHA1 Message Date
Yogisha Dixit 3cbd7e3c33 Update widget manipulation colors.
Spec:
* Resize frame: https://docs.google.com/presentation/d/1UxdDh8EFhPbdRWRwzjbpgL-j02ew4Ew3eG3XBCeoYdo/edit#slide=id.OeO4S0j
* Drop target bar: https://docs.google.com/presentation/d/1UxdDh8EFhPbdRWRwzjbpgL-j02ew4Ew3eG3XBCeoYdo/edit#slide=id.vXfwHn8

Test: manual
Bug: 187910396
Change-Id: I6fd433796970c428841ee96e45ee4fca1ded3665
2021-06-24 21:02:08 +01:00
TreeHugger Robot abb5f8f189 Merge "Measure WidgetsBottomPicker again when the number of spans changes" into sc-dev am: 6604eb54bf am: 3ad039a6c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15095550

Change-Id: I11e8a3851184059c70c30e26c49686b2f6e3fadf
2021-06-24 19:36:46 +00:00
TreeHugger Robot 6604eb54bf Merge "Measure WidgetsBottomPicker again when the number of spans changes" into sc-dev 2021-06-24 18:43:32 +00:00
Jon Miranda f762dc3270 Move qsb according to spec.
Bug: 175329686
Test: visual test
      checked 5x5 and confirmed no visual change
      checked 4x5 and confirmed visual change
      - tested various display sizes to ensure no overlapping is caused

Change-Id: I95a80b484516f634fa13347534810c7a51cecc8d
2021-06-24 17:16:13 +00:00
Steven Ng 53e8b46f66 Measure WidgetsBottomPicker again when the number of spans changes
Bug: In onMeasure, we calculate the number of spans that can be fit
horizontally. If the number of spans has changed, we re-organize
widgets shown in the table. However, after that, we didn't measure
WidgetsBottomPicker and its children again. As a result, the newly
added widget previews' dimensions are never measured.

Test: Long press clock app and then click widgets. Rotates the screen
      and observe widgets correctly shown.
Fix: 191644950
Change-Id: Iae94fba5b137807483e061d785b18d59defb013e
2021-06-24 18:16:05 +01:00
Jonathan Miranda aa4b1ee9e6 Merge "Update popup colors. Add local color extraction behind a flag." into sc-dev am: bd51e6e3f3 am: 4e767a9591
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15065087

Change-Id: I70956da783206b92609b9ce2b87be68833710367
2021-06-23 23:20:40 +00:00
Jonathan Miranda bd51e6e3f3 Merge "Update popup colors. Add local color extraction behind a flag." into sc-dev 2021-06-23 22:51:20 +00:00
Hilary Huo 04f50d616e Merge "[settings-pixel-search] Add ww logging to track slice fetching timeout" into sc-dev am: 08843d8e37 am: 1f306ec22a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15068624

Change-Id: Id90ce19c4ab2f03e654e18af44292887aca03e1e
2021-06-23 22:40:10 +00:00
Hilary Huo 08843d8e37 Merge "[settings-pixel-search] Add ww logging to track slice fetching timeout" into sc-dev 2021-06-23 22:18:00 +00:00
Steven Ng 47fde106aa Merge "Use default spans as min spans if the min spans > default spans" into sc-dev am: fa9f70be03 am: ec5d4f71fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15081332

Change-Id: Icbc5bc757ba029a4d9969a01d1c3525000902370
2021-06-23 21:25:17 +00:00
Steven Ng 672018edcc Merge "Add null check before detach content view from dragView at onDropComplete" into sc-dev am: 5b786ca88d am: 8ec3545fb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15042822

Change-Id: I98d191aa4bfea42cb90b36dbf7875bd55c385c7c
2021-06-23 21:25:11 +00:00
Jon Miranda 27de7d2643 Update popup colors. Add local color extraction behind a flag.
- Also updating folder backgrounds, lStar only works in ColorStateList.

Bug: 191496301
Test: test wallpaper with light text, in light mode
      test again in dark mode
      test wallpaper with dark text, in light mode
      test again in dark mode

Change-Id: I2d43d874e7e2fad6a9a0e039058beb58b204fa96
2021-06-23 14:18:25 -07:00
Steven Ng fa9f70be03 Merge "Use default spans as min spans if the min spans > default spans" into sc-dev 2021-06-23 21:05:43 +00:00
Steven Ng 5b786ca88d Merge "Add null check before detach content view from dragView at onDropComplete" into sc-dev 2021-06-23 21:01:57 +00:00
Samuel Fufa 512f54d57c Merge "Polish work for work profile" into sc-dev am: 1e70c235cf am: 770b6a182a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15031833

Change-Id: I4d641524d85183379c3db51a248170af5a9707dc
2021-06-23 19:26:41 +00:00
Samuel Fufa 1e70c235cf Merge "Polish work for work profile" into sc-dev 2021-06-23 18:58:29 +00:00
Jonathan Miranda a7c82c5991 Merge "Fix bug where icons in hotseat were clipped when display size is Small." into sc-dev am: 23415e214c am: 0af274b3fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15068798

Change-Id: Id42c458a5418c049f9f8bd337cc546addf998bb8
2021-06-23 18:40:03 +00:00
Hyunyoung Song 6eaef9efb0 Merge "Hide searchbox when header protection is on." into sc-dev am: 93068d1c39 am: 98c950462b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15058492

Change-Id: I8a5f04b55f3077abfb23dc358d01c80f6138130a
2021-06-23 18:39:57 +00:00
Jonathan Miranda 23415e214c Merge "Fix bug where icons in hotseat were clipped when display size is Small." into sc-dev 2021-06-23 18:27:19 +00:00
Hyunyoung Song 93068d1c39 Merge "Hide searchbox when header protection is on." into sc-dev 2021-06-23 18:15:27 +00:00
Hilary Huo e83189593a [settings-pixel-search] Add ww logging to track slice fetching timeout
Test: https://paste.googleplex.com/6310936320147456
Bug: 191297465
Change-Id: I0a4a65295e7290b55dccdb63830ff60c6838fbb2
2021-06-23 10:16:21 -07:00
Samuel Fufa ce820f51e2 Polish work for work profile
Bug: 191478900 Work profile toggle specs
Bug: 187761192 Fix issue where Installing app scrolling apps to top
Bug: 191121890	Fix issue where top of AllApps becomes empty when returning to AllApps
Bug: 191477329 String change for work profile paused state
Test: local
Change-Id: Idbaab333566b54afa3dc879f5bea98e1f77c44fc
2021-06-23 16:46:52 +00:00
Steven Ng 0571a370d1 Use default spans as min spans if the min spans > default spans
This is to match the behavior described in
AppWidgetProviderInfo#minResizeWidth/Height documentation.

Test: run LauncherAppWidgetProviderInfoTest
Bug: 191223844
Change-Id: I37c0c8bf5e4588919e5b30fab6d2fde7236e114b
2021-06-23 17:11:05 +01:00
Jon Miranda 0d284852d9 Fix bug where icons in hotseat were clipped when display size is Small.
Simplify calculations to ensure the hotseat sizes are always accurate.

Bug: 186556930
Test: changed display setting from small to largest on different grid
      sizes (5x5, 4x4, 4x5, 3x3, 2x2)

Change-Id: I97580c50a9d821577eb63335950d5695d9bf035d
2021-06-23 08:08:12 -07:00
Hyunyoung Song 7d3b25734a Hide searchbox when header protection is on.
Bug: 191726215
Test: manual
Change-Id: I086a05654faf718683ebe5dfbcf64b6bd6347ca8
2021-06-23 00:44:49 -07:00
Brian Isganitis ae224af2c7 Merge "Enable widgets in launcher preview flag" into sc-v2-dev am: 3ddf5f6d60 am: 39b52f498d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15054102

Change-Id: Id692f6fa3f19e9a913584c3438d180befe189a7a
2021-06-22 22:35:16 +00:00
Jonathan Miranda d3f452bbb2 Merge "Polish folder icon bugs." into sc-dev am: 835fab2305 am: 81a9fb9fe3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15046894

Change-Id: Ia680af59bb5ec24203f6e61ee562c4907a4dbde1
2021-06-22 22:34:55 +00:00
Steven Ng 92335ed7bd Add null check before detach content view from dragView at onDropComplete
Test: Drop a conversation widget on a configuration button. No crash
      is observed.
Fix: 191762933
Change-Id: I483c6f4dbc9fc6c096383682284a4c854707f583
2021-06-22 23:26:05 +01:00
Jonathan Miranda 835fab2305 Merge "Polish folder icon bugs." into sc-dev 2021-06-22 22:00:17 +00:00
Brian Isganitis 337f3c76a2 Merge "Use wallpaper colors for widgets in wallpaper change preview" into sc-v2-dev am: a905601cfd am: fe0d2f355c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15054091

Change-Id: Id41419ebed99beffd694214d718b742fb39b0de6
2021-06-22 19:32:31 +00:00
Brian Isganitis 1ce4353359 Enable widgets in launcher preview flag
Test: Widgets fully load in launcher preview with correct size and color
Fix: 185306338, 191499358
Change-Id: I2d02d7a1328ed9ef5d3dfbec090dc1f9908dd527
2021-06-22 14:58:22 -04:00
Brian Isganitis a905601cfd Merge "Use wallpaper colors for widgets in wallpaper change preview" into sc-v2-dev 2021-06-22 18:47:08 +00:00
Jon Miranda fa1e14c4b8 Polish folder icon bugs.
- Fix bug where folders are misaligned.
- Fix bug when closing on 2nd page of large folder.

Bug: 184822585
Test: drag folder originally in hotseat to workspace, vice versa
      test on grid where isScalable=true and isScalable=false

Change-Id: I08a79b8d280df3e3974baaa07e80db6bc4165e58
2021-06-22 11:12:47 -07:00
Cyrus Boadway f3f89a5a85 Merge "Suppress Splash Screen on widget reconfiguration activity start" into sc-dev am: 719be9a9e4 am: 7df9539310
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15062774

Change-Id: I398183bdfdd6737cb55feaedbdc71557fc9c311d
2021-06-22 13:00:11 +00:00
Cyrus Boadway db9d5cf3fd Merge "Suppress Splash Screen on widget reconfiguration activity start" into sc-dev am: 719be9a9e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15062774

Change-Id: Ia0ffb706d5cc9f9d5adc169b8308445f0accba9a
2021-06-22 12:49:55 +00:00
Cyrus Boadway 719be9a9e4 Merge "Suppress Splash Screen on widget reconfiguration activity start" into sc-dev 2021-06-22 12:30:23 +00:00
Steven Ng 484dec6600 Merge "Update all apps & widget pickers personal / work tabs" into sc-dev am: cec6edf78e am: 9d63fb1966
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15027782

Change-Id: Ie290c5bbf23d99a40f8a71197ff8628b59bb5fba
2021-06-22 10:56:18 +00:00
Steven Ng 8a46c403e0 Merge "Update all apps & widget pickers personal / work tabs" into sc-dev am: cec6edf78e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15027782

Change-Id: Ia69538b6b15cb6ab6ce5fa9a2f4f42b2d0664d58
2021-06-22 10:47:31 +00:00
Steven Ng cec6edf78e Merge "Update all apps & widget pickers personal / work tabs" into sc-dev 2021-06-22 10:37:00 +00:00
Cyrus Boadway 263a00c738 Suppress Splash Screen on widget reconfiguration activity start
When a widget configuration activity is started, it's started from
the launcher. Under some circumstances the launcher's splash screen
would be shown, rather than the splash screen corresponding to the
tapped app.

To avoid confusion, we suppress the splash screen for configuration
starts.

Bug: 190153065
Test: manual
Change-Id: Ib18851f1bb50b64bc5d47b8aa5931490c969b54b
2021-06-22 09:22:33 +00:00
Sunny Goyal 4b2528307c Merge "Simplifying Launcher binding callbacks" into sc-v2-dev am: 49537a8942 am: 5ba498a832
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15019037

Change-Id: I0ed0925e8d81ca801ab5807f574b277d9191e9b0
2021-06-22 04:29:25 +00:00
Sunny Goyal 49537a8942 Merge "Simplifying Launcher binding callbacks" into sc-v2-dev 2021-06-22 03:42:28 +00:00
Brian Isganitis 4a76315805 Use wallpaper colors for widgets in wallpaper change preview
Test: Widgets should adapt to new wallpaper colors in launcher preview.
Bug: 191499358
Change-Id: I3fb76b6036cb909771b789eac15742df78c2c742
2021-06-21 19:18:17 -04:00
Sunny Goyal 6cc492941b Merge "Fixing animation end not-called when cancelling state the animation recursively" into sc-dev am: b3eafe97bb am: b6cdee307b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15032078

Change-Id: I250b79241b12f23c0f53d1710887bf7327071cfb
2021-06-21 23:11:44 +00:00
Sunny Goyal a29220f6b6 Merge "Fixing animation end not-called when cancelling state the animation recursively" into sc-dev am: b3eafe97bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15032078

Change-Id: I0361531f4ff2695d97b5e48c5abc0c40fe505112
2021-06-21 22:42:06 +00:00
Sunny Goyal b3eafe97bb Merge "Fixing animation end not-called when cancelling state the animation recursively" into sc-dev 2021-06-21 22:32:23 +00:00
Steven Ng 50f1ff1808 Update all apps & widget pickers personal / work tabs
Test: Open all apps to confirm tab style match the mock in both dark &
      light mode.
      Open widgets picker to confirm tab style match the mock in both
      dark & light mode.
Bug: 191387242
Change-Id: Ie0111f65813128fef5befbdefd451cf0e9f01be9
2021-06-21 22:02:54 +01:00
Sunny Goyal de644313b0 Fixing animation end not-called when cancelling state the animation recursively
Bug: 190856140
Test: Manual
Change-Id: I5d6a00c1d1c0e95e615b7f2115e3e4ebb56b987f
2021-06-21 13:47:49 -07:00
Brian Isganitis 95438e9ae7 Merge "Revert "Fix home settings landing page"" into sc-dev am: fe139cdf69 am: 96f496df03 am: aed37b05e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15030323

Change-Id: I70498e9ce47e28a8d76023b62b8635bafc20bb30
2021-06-21 20:15:46 +00:00
Stevie Kideckel 4ef9cc99ab Merge "Add spacing between items as decorations instead of margins" into sc-dev am: e03784478d am: f792c64c6a am: dbfded01db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15028527

Change-Id: I796fee16073dfd2f1a6054fa117b4810579cbd2a
2021-06-21 20:14:52 +00:00