Commit Graph

4033 Commits

Author SHA1 Message Date
Bill Yi ae265f756b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idcda8ddba143ad0decd633fb5691b6db36427570
2021-06-30 08:19:29 +00:00
Jonathan Miranda ec448c10dd Merge "Allow two lines max for text view in system shortcuts." into sc-dev am: d4b713c7ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15135388

Change-Id: I9c471e724cdf171e87a97b42622b843258e87788
2021-06-30 05:12:26 +00:00
Jonathan Miranda d4b713c7ae Merge "Allow two lines max for text view in system shortcuts." into sc-dev 2021-06-30 05:02:14 +00:00
Jonathan Miranda 5ffad73b6e Merge "Add split_display device profile." into sc-dev am: 8acc1ad025
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15144182

Change-Id: Idcd69b036416e56d2f95e021d01b8dee2693125e
2021-06-30 03:07:25 +00:00
Jonathan Miranda 8acc1ad025 Merge "Add split_display device profile." into sc-dev 2021-06-30 02:55:50 +00:00
Brian Isganitis 610e43f90e Intercept touch events for launcher preview root view
This change prevents any accidental touches on any widgets in the
preview.

Test: Tapping on launcher preview in wallpaper app should never activate
a widget.
Fix: 191623924

Change-Id: Iac7eab057ec33ff491365a993af75a0b06a27f7e
Merged-In: I98d462eca699cf368dcd5894f15584f280932ccc
2021-06-29 23:59:03 +00:00
Brian Isganitis 0aa22aaea1 Merge "Intercept touch events for launcher preview root view" into sc-v2-dev 2021-06-29 23:58:17 +00:00
Brian Isganitis 3b39f3164b Intercept touch events for launcher preview root view
This change prevents any accidental touches on any widgets in the
preview.

Test: Tapping on launcher preview in wallpaper app should never activate
a widget.
Bug: 191623924

Change-Id: I98d462eca699cf368dcd5894f15584f280932ccc
2021-06-29 16:07:16 -04:00
Jon Miranda c26e5fff7c Allow two lines max for text view in system shortcuts.
This makes it more accessible for more languages.

Bug: 185770234
Test: set language to Spanish, ensure 2 lines
      ensure deep shortcuts remain 1 lines

Change-Id: I652fe6a51bde5d8c30f695a0a56f0879412bca01
2021-06-29 12:53:27 -07:00
Jon Miranda f70265f4ec Add split_display device profile.
Bug: 192215417
Test: manual set isSplitDisplay=true, ensure the added device profile
      gets set on device
Change-Id: Ibe33c33d3af140352c0bb4fb44460106ad898285
2021-06-29 17:10:12 +00:00
Alina Zaidi 5f7f8c3f74 Merge "Modify ripple for cancel button in search bar in widget picker." into sc-dev am: 8fb6ca3e5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142312

Change-Id: I99ce12f9217fd415720bf25b6482693a5b43c652
2021-06-29 16:46:14 +00:00
Alina Zaidi 8fb6ca3e5e Merge "Modify ripple for cancel button in search bar in widget picker." into sc-dev 2021-06-29 16:34:09 +00:00
Steven Ng 190471ff2d Merge "Set the widget preview title a11y text to "{widget name} widget"" into sc-dev am: 9bb83f65cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15127003

Change-Id: I6962b6c720359677764bdbde507b2a6aaae801f1
2021-06-29 14:41:27 +00:00
Alina Zaidi 2a9a10068c Modify ripple for cancel button in search bar in widget picker.
Bug: 192186626
Test: Tested manually
Change-Id: Ifff98e03ad3647df7d8b273c4c3eb7cd688efbc3
2021-06-29 15:39:29 +01:00
Steven Ng 9bb83f65cb Merge "Set the widget preview title a11y text to "{widget name} widget"" into sc-dev 2021-06-29 14:25:13 +00:00
Steven Ng 85486d1c2c Set the widget preview title a11y text to "{widget name} widget"
Fix: 187376680
Test: Manual
Change-Id: I211d8e2b437091808d1f5a764075af4c3832ef48
2021-06-29 12:12:43 +01:00
Bill Yi 720ae4ea5c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6f7595546854a4f61c7f30a35eead5afbb4d04df
2021-06-29 00:23:23 +00:00
Bill Yi 81ba407450 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I59f0fdfc56fb746707d480234ab850f1d61c7142
2021-06-29 00:22:43 +00:00
Bill Yi 532d29f5b3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idea1ccbcb39c781829567b172269b467d2dc4d41
2021-06-28 18:13:43 +00:00
Steven Ng 17afc8d2fd Merge "Refine all apps tabs alignment & remove ripple effect from tabs" into sc-dev am: c9d5391bf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15079828

Change-Id: Idaf1c4715bf938d92102e9b9e121e637ee5d34af
2021-06-28 16:57:18 +00:00
Steven Ng c9d5391bf2 Merge "Refine all apps tabs alignment & remove ripple effect from tabs" into sc-dev 2021-06-28 16:38:50 +00:00
Jonathan Miranda 9f113f76fa Merge "Update colors for non-v31 devices." into sc-dev am: 7a582f2d7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15096360

Change-Id: Ib926073532c53a4db19e9930ade8c9efd776796d
2021-06-26 15:10:27 +00:00
Yogisha Dixit 79d95df59d Merge "resolve merge conflicts of 1491ec31c5 to sc-v2-dev" into sc-v2-dev 2021-06-26 15:08:10 +00:00
Jonathan Miranda 7a582f2d7d Merge "Update colors for non-v31 devices." into sc-dev 2021-06-26 00:09:59 +00:00
TreeHugger Robot ad6cdf7bef Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-25 23:03:22 +00:00
TreeHugger Robot 284482a040 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-25 20:02:46 +00:00
Yogisha Dixit 3893eefe75 resolve merge conflicts of 1491ec31c5 to sc-v2-dev
Test: manual
Bug: 192076258
Change-Id: I44e02383cd8ce386811e24a1c4fd6ce62e38f90f
2021-06-25 17:23:22 +00:00
TreeHugger Robot 3e86b02d55 Merge "resolve merge conflicts of a754e678a7 to sc-v2-dev" into sc-v2-dev 2021-06-25 16:15:50 +00:00
TreeHugger Robot 1491ec31c5 Merge "Update widget manipulation colors." into sc-dev 2021-06-25 15:18:45 +00:00
Bill Yi 31ad1450c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ife559d5bd10b6749922ef3f6fb43ddff2d03a879
2021-06-25 14:46:32 +00:00
Bill Yi 546188034f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I70339606ead7b310ae985cfbb876e83326b2b019
2021-06-25 14:45:53 +00:00
Yogisha Dixit c0ac1dda74 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
Merged-In: I6fd433796970c428841ee96e45ee4fca1ded3665
2021-06-25 08:43:29 +00:00
TreeHugger Robot 39c65137ee Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-25 01:08:54 +00:00
Jonathan Miranda 7a273e2a8b resolve merge conflicts of a754e678a7 to sc-v2-dev
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: I5e00fcf57ffde597c6af08c6464ddfd7e8456bca
Merged-In: I95a80b484516f634fa13347534810c7a51cecc8d
2021-06-24 21:29:51 +00:00
Bill Yi d81d27a08f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I299d142391fb418d082010406c088a176d6ea044
2021-06-24 19:51:47 +00:00
Bill Yi 43293e124e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I535422d9812c77c7fc4040c2a356336b7cf22da0
2021-06-24 19:51:08 +00:00
Jon Miranda 8bdb222a18 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
Merged-In: I95a80b484516f634fa13347534810c7a51cecc8d
2021-06-24 18:51:46 +00:00
Jon Miranda 6a936e3ec4 Update colors for non-v31 devices.
Also renamed to popup color to popup shade to better differentiate
between the primary/secondary/tertirary popup colors.

Bug: 191496301
Test: Removed v31 colors to verify the non-v31 colors, that the shades are as expected
      Tested on wallpapaper with light text, again with dark mode
      Tested on wallpaper with dark text, and then again with dark mode

Change-Id: I3ec9ee7f85696ee48224740a1ec7f4abe42348ee
2021-06-24 11:07:52 -07:00
Jonathan Miranda dc01385cc2 Merge "Update popup colors. Add local color extraction behind a flag." into sc-dev am: bd51e6e3f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15065087

Change-Id: I900c337c3fb3bd6296b95102ec55d4e6c7057e29
2021-06-23 23:10:11 +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
Steven Ng be2dc65f08 Refine all apps tabs alignment & remove ripple effect from tabs
Test: Open all apps and observe the position of tabs alignment.
       Click a tab and observe the fade in color effect.
Fix: 191387242
Change-Id: Ie23a092268ce62eba29059eb5bd266a46ca652a5
2021-06-23 23:25:13 +01: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
Alina Zaidi 7392cf9bbf Merge "Update string for no room on this Home screen toast." into sc-dev am: b7e15cf3b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15079811

Change-Id: Iad854c8f22ed8923b42732644493063d7486eef6
2021-06-23 20:33:12 +00:00
Jonathan Miranda e7ce4caaed Merge "Fix folders being light in dark mode." into sc-dev am: 5546b258c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15082515

Change-Id: I299041edaebfc0f333bcc7e56b3fe6489aa8c644
2021-06-23 20:32:45 +00:00
Alina Zaidi b7e15cf3b3 Merge "Update string for no room on this Home screen toast." into sc-dev 2021-06-23 20:15:52 +00:00
Jonathan Miranda 5546b258c3 Merge "Fix folders being light in dark mode." into sc-dev 2021-06-23 20:13:24 +00:00
Samuel Fufa 6c2c69cd97 Merge "Polish work for work profile" into sc-dev am: 1e70c235cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15031833

Change-Id: Ie9cf60cd89c805c7341e2725259152215edea889
2021-06-23 19:00:41 +00:00
Jon Miranda d47f715b51 Fix folders being light in dark mode.
- Simplifying the styles here, following the same pattern as
  the popup colors.

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

Change-Id: I04f92bd64de69c5e33fc1bff50c4ecc0e7c17d37
2021-06-23 11:22:25 -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
Alina Zaidi 95d6df3647 Update string for no room on this Home screen toast.
Bug: 191852136
Test: Tested manually to check that the toast has updated string.
Change-Id: I28f73eda17fdc49dee18e4f8be89224f04471697
2021-06-23 17:15:29 +01:00
Alina Zaidi d0394d3d20 Merge "Rename strings for no search results and no widgets in widget picker." into sc-dev am: a5ee592a1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15062770

Change-Id: Idc4c43f466584709a0dc491c3999fb00f9161da4
2021-06-22 17:46:31 +00:00
Alina Zaidi a5ee592a1b Merge "Rename strings for no search results and no widgets in widget picker." into sc-dev 2021-06-22 17:24:15 +00:00
Alina Zaidi 267e9b0c04 Rename strings for no search results and no widgets in widget picker.
Also update text size and font.

Bug: 191732424
Test: Not needed, minor string change
Change-Id: I90f00f1316524c48520c4cfc265ab2d5e78e3281
2021-06-22 16:14:59 +01: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 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
Stevie Kideckel f792c64c6a Merge "Add spacing between items as decorations instead of margins" into sc-dev am: e03784478d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15028527

Change-Id: Iccc9f7d9b3add624b47557350cd85567b17206b1
2021-06-21 19:59:36 +00:00
Stevie Kideckel ded80076db Add spacing between items as decorations instead of margins
There are bugs in the accounting for the margins if we manipulate the
view directly, causing the wrong top to be reported and the view to be
shifted when we call scrollToPosition. Item decorations ensure that the
layout system for the recycler view always has the right details about
the spacing.

Fix: 191642682
Test: verified locally
Change-Id: Ie80563757079e885c8178883ab16e314d01c5b32
2021-06-21 15:11:33 +00:00
Bill Yi 76680262bc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6dd7c6379367b226818926ac18c8bb04571a1dc4
2021-06-20 03:58:07 +00:00
Bill Yi 5ca92844d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If4193b7d4f8ad8cd70c3ff2e771e48d51cdfb2b2
2021-06-20 03:57:28 +00:00
Vinit Nayak 3fcc02b8dc Merge "Add IDs to buttons in 3 button nav for Taskbar" into sc-v2-dev 2021-06-19 05:51:57 +00:00
TreeHugger Robot aafb391b39 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-19 04:44:58 +00:00
Jonathan Miranda 11a9b035f3 Merge "Update notification popup UI." into sc-dev am: 1bfd350ead
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15017911

Change-Id: I468cd0896be43857ce188186cfda9f3ae94c07fb
2021-06-19 04:11:19 +00:00
Jonathan Miranda 1bfd350ead Merge "Update notification popup UI." into sc-dev 2021-06-19 03:52:23 +00:00
Bill Yi 3010277cd6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I33f33183171d4a849e00627d4cbd747cace04851
2021-06-19 03:16:22 +00:00
Vinit Nayak b974a86c8f Add IDs to buttons in 3 button nav for Taskbar
Bug: 191449914
Test: testSwitchToOverview passes
See bug for more details

Change-Id: I108bbe7607181680bca7cb5fad5e7289191edde6
2021-06-18 18:20:44 -07:00
Jon Miranda 313b2c2d28 Update notification popup UI.
- Update UI to match specs.
- Only shows one notification (removed footer, animation code)

Bug: 175329686
Bug: 190402054
Test: open popup, dismiss notification from shade,
      open popup, click on notification
      checked RTL

Change-Id: I92672f94233d986ae5b5c54979980967308cb156
2021-06-18 22:42:44 +00:00
Samuel Fufa 485796e814 Merge "Allow AllApps to restore current selected tab on activity recreate" into sc-dev am: f44a9ca6f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15014304

Change-Id: Ifbedb11e2c42d66e04093f0ddc7dd983ab27c1b7
2021-06-18 18:12:59 +00:00
Samuel Fufa f44a9ca6f0 Merge "Allow AllApps to restore current selected tab on activity recreate" into sc-dev 2021-06-18 17:57:08 +00:00
Samuel Fufa e79b469986 Allow AllApps to restore current selected tab on activity recreate
This CL also fixes:

- Wrong tab selection on RTL
- Fixes header protection hydraulic scroll issue
- Work toggle button text background contrast

Bug: 186005219
Bug: 191250799
Bug: 191227662
Bug: 191349226
Test: Manual
Change-Id: I3777474c954ed0d542ac38ff552367904be147d3
2021-06-17 16:59:56 -05:00
Bill Yi 5f5b2e2558 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie7cf7ee0a2fc1095e8e59bd41c7ebc5e0fec3678
2021-06-17 21:32:13 +00:00
Samuel Fufa ab4fb243b7 Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev am: efa5df380c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15002979

Change-Id: I71867324537972713cb4660a70f20a4d06b5a012
2021-06-17 18:50:23 +00:00
Samuel Fufa efa5df380c Merge "Refactor FolderInsetAnimationCallback to be used with any view" into sc-dev 2021-06-17 18:48:49 +00:00
Yogisha Dixit d417d36615 Merge "Center drop target icons in landscape mode." into sc-dev am: 3287dd9fa7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980961

Change-Id: Id3f175c250acc0a40b9662c20c28c73c9fd35c13
2021-06-17 09:45:50 +00:00
Yogisha Dixit 3287dd9fa7 Merge "Center drop target icons in landscape mode." into sc-dev 2021-06-17 09:34:42 +00:00
Steven Ng 595c7ced57 Merge "Fix PendingWidgetHostView overlapping UI" into sc-dev am: e8772c1659
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14980850

Change-Id: I462b605d109dcb9799bbf76f1c5adee0d283eccf
2021-06-17 09:19:40 +00:00
Steven Ng e8772c1659 Merge "Fix PendingWidgetHostView overlapping UI" into sc-dev 2021-06-17 09:08:15 +00:00
Samuel Fufa d04a92d1ed Refactor FolderInsetAnimationCallback to be used with any view
- Update ic_corp_off icon to outline
- Remove shadow from work toggle
- Translate work fab when keyboard is shown

Screenshot: https://screenshot.googleplex.com/593tEg7bE4kSS4y

Bug: 191251404
Bug: 191250785
Test: local
Change-Id: Ie7dddfd17eb90575a1e1f67e281070dd8d268f8d
2021-06-16 17:25:53 -05:00
Jonathan Miranda 897dfb5151 Merge "Update launcher text to match specs." into sc-dev am: f89c4280b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14986097

Change-Id: I8b19e0cde2a8bf295c87e5acb8b24bbd39635ce5
2021-06-16 20:53:12 +00:00
Jonathan Miranda f89c4280b3 Merge "Update launcher text to match specs." into sc-dev 2021-06-16 20:51:48 +00:00
Hyunyoung Song cd4de5ed37 Merge "All apps motion" into sc-dev am: d2ad97989c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14973766

Change-Id: I0defd93e9d2a6cb99e2695ff185e0ef552dee5f6
2021-06-16 20:34:36 +00:00
Hyunyoung Song d2ad97989c Merge "All apps motion" into sc-dev 2021-06-16 20:14:46 +00:00
Yogisha Dixit bd1581f030 Merge "Fix drop target icons being truncated." into sc-dev am: de268a51a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14899271

Change-Id: I027d4605768273e0c5115f02682d87fea206f204
2021-06-16 20:02:45 +00:00
Yogisha Dixit 58c5e65763 Center drop target icons in landscape mode.
Spec: https://docs.google.com/presentation/d/1UxdDh8EFhPbdRWRwzjbpgL-j02ew4Ew3eG3XBCeoYdo/edit#slide=id.vXfwHn8

Test: manual
Bug: 187376586
Change-Id: I2025ba75061a5ca3a004dfef2b33cdbcc17a1408
2021-06-16 20:55:56 +01:00
Yogisha Dixit de268a51a1 Merge "Fix drop target icons being truncated." into sc-dev 2021-06-16 19:48:08 +00:00
Jonathan Miranda 47f8a1c3ef Merge "App Shortcut menu bug fixes and polish." into sc-dev am: c846245f1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14985072

Change-Id: Icba377c0032eee2dacec8a3c4364fa5b958880b7
2021-06-16 18:19:16 +00:00
Hyunyoung Song 54a44d4c44 All apps motion
Bug: 189970327
Test: manual

TL;DR;;

equation: settleVelocity = releaseVelocity + interpolator 2nd deritive * t

Change-Id: I86fec339523fbc3bb347dec4affbd2d1c063d13d
2021-06-16 11:17:59 -07:00
Jonathan Miranda c846245f1b Merge "App Shortcut menu bug fixes and polish." into sc-dev 2021-06-16 18:06:13 +00:00
TreeHugger Robot e7cf240e0c Merge "Add work toggle to work apps paused message" into sc-dev am: 29dba38119
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14970540

Change-Id: I66f4c3273eb3fcf5e0f5d956d559915505dfaad3
2021-06-16 16:15:02 +00:00
TreeHugger Robot 29dba38119 Merge "Add work toggle to work apps paused message" into sc-dev 2021-06-16 15:57:49 +00:00
Yogisha Dixit ed052ab212 Fix drop target icons being truncated.
The icons were being truncated due to incorrect viewport width/height
values for the vector drawable.

Test: manual
Bug: 187036287
Change-Id: Ie2d0ffe815501d2e943146a79cb4ede379ce0ecf
2021-06-16 14:07:38 +01:00
Steven Ng 19bc880a5f Fix PendingWidgetHostView overlapping UI
* Only show launcher set up UI if a pending widget has not finished
set up.
* Update configuration string

Test: manual inspection
Bug: 190037003
Change-Id: I3b9fb39da21ea557f97e9ca7b05a3b52f3ec3452
2021-06-16 11:22:49 +01:00
Stevie Kideckel 857820793f Merge "Use drawable states for list positions instead of swapping drawables" into sc-dev am: 358411a96a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14966492

Change-Id: Iab3dc8912f976159a2536a631594535b39ade45f
2021-06-16 09:50:25 +00:00
Stevie Kideckel 358411a96a Merge "Use drawable states for list positions instead of swapping drawables" into sc-dev 2021-06-16 09:34:21 +00:00
Jon Miranda 229c4c3235 App Shortcut menu bug fixes and polish.
- Widget is its own item.
- Change order of icon order.
- Update grab handle colors

Bug: 188095695
Test: long press on apps with/without widgets, long press apps on workspace/
      all apps/search

Change-Id: Iabb9b4b3f3a928103b9d62601f22e74ef2325d7c
2021-06-15 18:59:51 -07:00
Jon Miranda a7783fd734 Update launcher text to match specs.
Bug: 190915409
Test: visual, manual
Change-Id: I9560f95a452cf92ca3eada2a13f3ed63cc9b44da
2021-06-15 14:47:30 -07:00
Samuel Fufa dfc274364e Add work toggle to work apps paused message
This also fixes scrolling issues in landscape

Bug: 186857875
Bug: 161929312
Bug: 189983516
Bug: 190567199
screenshot: https://screenshot.googleplex.com/BCjcyJFqJo6W4Tr
Test: local
Change-Id: I7bcf23cc4be2fca936eba41342731789eb8f3292
2021-06-15 14:58:05 -05:00
TreeHugger Robot 86ec716300 Merge "Update all apps divider to pill shape" into sc-dev am: 4ff2682787
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14966493

Change-Id: I4eb5916743ec677f9658c3a51d05802d9f71afca
2021-06-15 18:52:50 +00:00
TreeHugger Robot 7baa1aea25 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-15 18:49:17 +00:00
TreeHugger Robot 4ff2682787 Merge "Update all apps divider to pill shape" into sc-dev 2021-06-15 18:33:22 +00:00
TreeHugger Robot 7f1164c8b8 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-15 18:23:06 +00:00
Alina Zaidi b49556b21a Merge "Update bottom widget picker and pin widget dialog layout in landscape mode." into sc-dev am: b5459c9ba5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14817823

Change-Id: Iaf5fb71dc31f9e94b053c74da4a148bef0f761da
2021-06-15 17:37:47 +00:00
Alina Zaidi b5459c9ba5 Merge "Update bottom widget picker and pin widget dialog layout in landscape mode." into sc-dev 2021-06-15 17:23:02 +00:00
Bill Yi 5301e68108 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icdc7900e3f87c4dab24625e0416ff37e486cfb65
2021-06-15 16:43:13 +00:00
Bill Yi 360a6e593b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7eaab8bb5354b70f5fb4f6531a06ccb1d297c1fd
2021-06-15 16:42:33 +00:00
Stevie Kideckel 803927bdae Use drawable states for list positions instead of swapping drawables
Replacing drawables interrupts touch feedback of ripples. Implementing
custom state lists allows altering the corner radius without cutting off
ripples and also means we reduce unnecessary object creation.

Fix: 190467676
Test: locally
Change-Id: I10eec042aae57d278f8254327d42df945767c7ac
2021-06-15 16:32:36 +00:00
Alina Zaidi dfa6aa828c Update bottom widget picker and pin widget dialog layout in landscape mode.
Bug: 189726613
Test: Manually tested
Change-Id: I048740f949571423ab53bbb01e7128d9981b1ce7
2021-06-15 14:27:57 +01:00
Samuel Fufa 22617e92ca Merge "[Build Blocking] Fix conflicting resource IDs for work tab" into sc-dev am: b8cec440cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14969650

Change-Id: I1d6376d52f570e72ae32ef2e498c8d925273d954
2021-06-15 01:03:28 +00:00
Samuel Fufa 200c734e8e [Build Blocking] Fix conflicting resource IDs for work tab
Bug: 186857875
Bug: 191080190
Test: local
Change-Id: I7adbd79a061af4d07c7426db1496f8c319902266
2021-06-14 22:30:57 +00:00
Jonathan Miranda 7e8b2742c9 resolve merge conflicts of 11bf817e86 to sc-v2-dev
Bug: 190210234
Bug: 190164147
Test: manual

Change-Id: I155ee7efdbda10c05f87001ac4eaf07017a6d456
Merged-In: I230c33d7e4e1871d8d702737c56c79ce46504b8f
2021-06-14 20:32:58 +00:00
Jonathan Miranda 11bf817e86 Merge "Folder polish - update color extraction, fix contrast issues." into sc-dev 2021-06-14 20:11:50 +00:00
Samuel Fufa b2d6d73377 Merge "Introduce inline education for work profile" into sc-dev am: b8b822a74b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14962825

Change-Id: I144ebf38fab282417389a51f0b95d47001482d79
2021-06-14 19:34:04 +00:00
Samuel Fufa b8b822a74b Merge "Introduce inline education for work profile" into sc-dev 2021-06-14 19:29:28 +00:00
Samuel Fufa d85735db47 Update all apps divider to pill shape
Screenshot: https://screenshot.googleplex.com/4AJFL7MjJuZr7tf
Bug: 188946089
Test: local
Change-Id: If45512b24caefc66725892ab8429afd3d9ce20c8
2021-06-14 13:37:52 -05:00
Jon Miranda 5688010306 Folder polish - update color extraction, fix contrast issues.
- Also fixes open/close animation when items were not getting clipped
  due to folder not being measured yet.

Bug: 190210234
Bug: 190164147
Test: manual
Change-Id: I230c33d7e4e1871d8d702737c56c79ce46504b8f
Merged-In: I230c33d7e4e1871d8d702737c56c79ce46504b8f
2021-06-14 17:54:19 +00:00
Takeshi Hagikura 024262cc03 Merge "Update the colors of the tabs of work profile pagination" into sc-dev am: 7937cecde2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14913674

Change-Id: Iea5ec8efa514c0ad3b4e9e8b14b0ea526996e90f
2021-06-14 08:09:44 +00:00
Takeshi Hagikura 7937cecde2 Merge "Update the colors of the tabs of work profile pagination" into sc-dev 2021-06-14 07:54:39 +00:00
Samuel Fufa 154ad76f40 Introduce inline education for work profile
Bug: 186857875
Test: local
Change-Id: I796b04fbb3ffc714a01104107774819d35034f93
2021-06-14 01:01:42 -05:00
Samuel Fufa cd5f45b2b6 Merge "[AllApps][Work] Introduce work toggle Fab" into sc-dev am: 2f346b8666
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14948496

Change-Id: I7208e1c28573aa65035aa0783f56f52f4a0c1b3b
2021-06-14 02:49:51 +00:00
Samuel Fufa 2f346b8666 Merge "[AllApps][Work] Introduce work toggle Fab" into sc-dev 2021-06-14 02:34:58 +00:00
Samuel Fufa 45e0e26971 [AllApps][Work] Introduce work toggle Fab
Screenshot: https://screenshot.googleplex.com/C4r7kKPxv3PKdyN
Bug: 186856928
Test: on-device
Change-Id: Ifd8ce20fcf2247a6e80537dc7631458e594a8a63
2021-06-13 20:01:20 -05:00
Brian Isganitis 93031bc2ae Revert "Revert "Update preferences to Material Next styling""
There should be enough free space to merge this change into S V2.

This reverts commit 19d623d921.

Test: Settings root, all apps, and about have new style on S
Bug: 187732263
Fix: 188254205, 188012913
Change-Id: I346bbf819f3fe1eb13b47125b53c15baab11e439
2021-06-11 16:04:35 -04:00
Jonathan Miranda a51ef571ad Merge "Adding color back to popup container." into sc-dev am: d88f572864
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14796372

Change-Id: If0211bbefae257d97e7b652acff0b569bf088b4d
2021-06-11 17:30:04 +00:00
Jonathan Miranda d88f572864 Merge "Adding color back to popup container." into sc-dev 2021-06-11 17:16:27 +00:00
Anton Hansson 8b780d8517 Merge "Revert "[AllApps][Work] Introduce work toggle Fab"" into sc-dev am: 17ef90b2cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14939015

Change-Id: I47bd374d48ee1cdbdc69b4cb3504296c7d475396
2021-06-11 15:13:08 +00:00
Anton Hansson 17ef90b2cb Merge "Revert "[AllApps][Work] Introduce work toggle Fab"" into sc-dev 2021-06-11 15:02:25 +00:00
Anton Hansson fc235903ab Revert "[AllApps][Work] Introduce work toggle Fab"
This reverts commit 08cca82eca.

Reason for revert: broke errorprone build
Bug: 190150515

Change-Id: I1d8707392310e745713b8780bdb957299b88a3a6
2021-06-11 14:05:07 +00:00
Alina Zaidi e908dbba29 Merge changes I5d1c9e4b,I08154c94 into sc-dev am: 1fbf9200f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14899453

Change-Id: I2ad1c6fd6c70d06f3aea57b465cddb107f4aba2e
2021-06-10 20:59:43 +00:00
Alina Zaidi 1fbf9200f1 Merge changes I5d1c9e4b,I08154c94 into sc-dev
* changes:
  Flip ArrowTipView when it goes beyond screen height.
  Add more education tips for widgets. (3/3)
2021-06-10 20:46:20 +00:00
TreeHugger Robot c9565c2444 Merge "Add a content description for the widget reconfigure button." into sc-dev am: 0dfabe0a1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14690881

Change-Id: Iec5619e8b03da7239a5200dfa5acd45a75dea2af
2021-06-10 19:27:03 +00:00
Jon Miranda 32ff76cb4e Adding color back to popup container.
For Color exctraction now occurs in groups:
- System shortcuts
- Deep shortcuts
- Notifications

For home setting popup, each DeepShortcutView will have its own
extracted color.

Bug: 188095443
Test: manual
Change-Id: I7e209f863ff180b8f017aeb2a73c6f1a51842e68
2021-06-10 19:15:24 +00:00
TreeHugger Robot 0dfabe0a1e Merge "Add a content description for the widget reconfigure button." into sc-dev 2021-06-10 18:39:04 +00:00
Alina Zaidi ecdf6575ec Add more education tips for widgets. (3/3)
Show tip on reconfigurable widget in launcher.

Bug: 185354491
Test: Manually tested tips in widget picker, all apps, and
reconfigurable widgets tip.

Change-Id: I08154c944285cac6a21c3ef4aafd878bbbccf44b
2021-06-10 14:23:47 +01:00
Takeshi Hagikura 43d53432aa Update the colors of the tabs of work profile pagination
Update the tab colors based on the discussion in the bug and the
design mock.
Rename the color/all_apps_tab_bg to
color/all_apps_tab_background_selected to make the usage of the color
explicit.
(Confirmed it's only used for the color of the selected tab)

Bug: 189488670
Test: Visual inspection
Change-Id: I6ac38f71a8dd8852e1ab2e70f2f8434e9101daa1
2021-06-10 18:55:59 +09:00
Yogisha Dixit c0f29c6f95 Add a content description for the widget reconfigure button.
Bug: 186761890
Test: manual
Change-Id: Ia36972b606a524827ade8bd1c191f8b972bbb382
2021-06-09 22:47:40 +01:00
Samuel Fufa b21f9d8c08 [AllApps][Work] Introduce work toggle Fab am: 08cca82eca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14724697

Change-Id: Ie775dacc94be5295329f7dd2c20908eed4c099fd
2021-06-09 19:58:42 +00:00
Samuel Fufa 08cca82eca [AllApps][Work] Introduce work toggle Fab
Screenshot: https://screenshot.googleplex.com/C4r7kKPxv3PKdyN
Bug: 186856928
Test: on-device
Change-Id: I69ffa0ef367b182688e69c730fc9dee1afa7cadd
2021-06-09 17:13:07 +00:00
TreeHugger Robot d57f845bc5 Merge "Set folder dot color to spec." into sc-dev am: 827ff401b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14904195

Change-Id: I6b40985162e5713c577c7380b5ce9a1bcbb80a5d
2021-06-08 19:43:49 +00:00
Jon Miranda 9b4448f477 Set folder dot color to spec.
Bug: 188095988
Test: manual
Change-Id: Idf4d7f7b8f95d1d112ece8cd03d9c7d441a5fe0f
2021-06-08 10:55:58 -07:00
Jonathan Miranda 0622a1e470 Merge "New folder icon style (uncropped icons)." into sc-dev am: 93c0cfadb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14849713

Change-Id: I1ff62aaacada2c95922ae0166c10d95bf2448d57
2021-06-07 22:03:43 +00:00
Jonathan Miranda 93c0cfadb1 Merge "New folder icon style (uncropped icons)." into sc-dev 2021-06-07 21:48:50 +00:00
TreeHugger Robot 744244464e Merge "Make status bar icons visible in pin widget dialog scrim." into sc-dev am: ab8543e11a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14844552

Change-Id: Icc5a27e02d68f05f78f3136f71a93f6046eb47c3
2021-06-07 19:50:53 +00:00
TreeHugger Robot ab8543e11a Merge "Make status bar icons visible in pin widget dialog scrim." into sc-dev 2021-06-07 19:33:14 +00:00
Alina Zaidi 2e4d15d2b5 Make status bar icons visible in pin widget dialog scrim.
Use dark icons on status bar in light mode.

Bug: 189389865
Test: tested manually
Change-Id: I121fb59f52a9062ee301e1db3d8a3a7e9139ed5a
2021-06-07 18:22:55 +01:00
Hyunyoung Song a2f87bef6e Merge "Icon sizes/ keyline / font for AA+ results" into sc-dev am: 02b62ed6fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14837351

Change-Id: If8f00a4cb12d7942c0d582a45a43372ce89f030a
2021-06-07 15:09:47 +00:00
Hyunyoung Song 02b62ed6fe Merge "Icon sizes/ keyline / font for AA+ results" into sc-dev 2021-06-07 14:49:50 +00:00
Bill Yi 5a988f02b0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I57fdb8591b44c95bb4e9a394d4c5f239b6ad80f6
2021-06-07 05:38:05 +00:00
Bill Yi db79a9f3cd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie4d81f7b28e3ae813bdde9fabd90872a3929187b
2021-06-07 05:37:28 +00:00
Jon Miranda e41dd483e6 New folder icon style (uncropped icons).
- Switch Circle to PathShape as it allows for more flexibility on
  choosing what gets cropped.
- Remove shadows, and stroke.

Bug: 188095988
Test: manual
Change-Id: I602b3efcd35c2c11dc3461f49099c2f2a56eae59
2021-06-04 18:32:10 -07:00
Stevie Kideckel 6eff99a7d3 Merge "Fix corner radius for expanded widget picker list items" into sc-dev am: 6f3081affa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14830781

Change-Id: Ic29d0cbdc804c77981c0ed4945eedaa93c5da1b9
2021-06-04 21:05:03 +00:00
Stevie Kideckel 6f3081affa Merge "Fix corner radius for expanded widget picker list items" into sc-dev 2021-06-04 20:50:52 +00:00
Sunny Goyal a72e9e20bf Merge "Taskbar layout update" into sc-v2-dev 2021-06-04 18:08:58 +00:00
Stevie Kideckel d93feeba0a Fix corner radius for expanded widget picker list items
Also create the drawables at runtime to avoid all the permutations

Fix: 189329394
Test: verified locally
Change-Id: I0497759ff68bd4ae6b1635423cfd4713f06d349f
2021-06-04 13:04:04 +00:00
Yogisha Dixit 2ff963b0c7 Use a selector instead of loading resource for drop target.
Test: manual
Bug: 187355401,187035471
Change-Id: I65fef2c810c791c3282bd4a087359f6cff774cc4
2021-06-04 12:10:06 +01:00
Hyunyoung Song e3d32b543d Icon sizes/ keyline / font for AA+ results
Bug: 188946408
Bug: 189166362

Test: manual, screenshots on the bug
Change-Id: I40c77d8ea3cdcc9dcc33afb1026d1f75c21e9f05
2021-06-04 01:43:40 -07:00
TreeHugger Robot 51d7cda483 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-04 00:20:35 +00:00
Sunny Goyal 57b2279dcb Taskbar layout update
> Calculating the hotseat padding statically
> Animating taskbar views individually when animating to home
  instead of a layout animation
> Moving all navbar buttons to a separate layout/controller and independent
  of Launcher
> Fixing RTL layout for taskbar and nav bar

Bug: 187353581
Test: Manual
Change-Id: If21696f38beee328f553e467394776a8e8ed4c3e
2021-06-03 16:10:02 -07:00
Brian Isganitis ed49a7187d Pad bottom of settings list view with bottom system insets
This change allows for a transparent navigation bar in the settings Material next redesign.

Test: Bottom of settings not cut off by bottom navigation bar
Bug: 187732263
Change-Id: I237011003ca0c3760c0fbdbb2865ef90c19d7b81
2021-06-03 17:02:05 -04:00
Bill Yi 77811638c7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2aeaa7f42eb543dc89898042289ba5baf91da4ca
2021-06-03 19:02:15 +00:00
Alina Zaidi c599c90eaa Merge "Update scrim in widget pickers." into sc-dev 2021-06-03 10:42:29 +00:00
Weilun Du 971d7fddcc Merge "Revert "Update preferences to Material Next styling"" into sc-dev 2021-06-03 00:04:49 +00:00
Weilun Du 19d623d921 Revert "Update preferences to Material Next styling"
Revert "Add dependency for settings activity collapsing toolbar"

Revert submission 14740617-collapse3

Reason for revert: Build breakage
Reverted Changes:
I5ef658979:Add dependency for settings activity collapsing to...
I0ca55eecb:Update preferences to Material Next styling

Bug: 189919452
Change-Id: I4aa0bfc473334266a951d84064b4e8e406fff0a4
2021-06-02 22:04:44 +00:00
Alina Zaidi 8796707172 Update scrim in widget pickers.
Also adjust padding in pin widget bottom sheet.

Test: Tested manually
Bug: 189802334
Change-Id: Ic25547ab1519139afdbf07aaefeb9168cf3501ff
2021-06-02 20:39:28 +01:00
TreeHugger Robot 23cf59bfd5 Merge "Remove elevation from the full widgets picker container" into sc-dev 2021-06-02 13:57:45 +00:00
Brian Isganitis 9b8ab05a17 Update preferences to Material Next styling
Styles are forked from SettingsLib to avoid using any private APIs.

Test: Settings root, all apps, and about have new style on S
Bug: 187732263
Fix: 188254205, 188012913
Change-Id: I0ca55eecbc82cfa5d0b8707beb4bb7c82b2aa2b1
2021-06-01 19:44:19 -04:00
Steven Ng 6ed382efee Remove elevation from the full widgets picker container
Test: Open the full widgets picker and observe no shadow added to the
      rounded corners.
Bug: 189808029
Change-Id: I539f6ebc0310cd4a037cd5eab6db4ee22b579195
2021-06-01 23:21:03 +01:00
Brian Isganitis d9463fbfdd Merge "Create settings activity layout with explicit toolbar" into sc-dev 2021-06-01 20:15:15 +00:00
Jonathan Miranda 920b6e7ffd Merge "Update device paddings to spec." into sc-dev 2021-06-01 18:18:08 +00:00
Jonathan Miranda 8a51f11b63 Merge "Make BaseIcon.Workspace so that it can be overriden." into sc-dev 2021-06-01 18:17:43 +00:00
Jonathan Miranda dfde41cf1e Merge "Change folderFillColor to colorBackgroundFloating." into sc-dev 2021-06-01 18:17:17 +00:00
Alina Zaidi 8bd4ef6122 Merge "Update buttons in pin widget picker." into sc-dev 2021-06-01 17:34:43 +00:00
Alina Zaidi 8a8c36cca9 Merge "Add more education tips for widgets. (2/3)" into sc-dev 2021-06-01 17:34:18 +00:00
Alina Zaidi 8cabe52f81 Update buttons in pin widget picker.
Bug: 188504905
Test: Tested manually
Change-Id: Ibce57d7f70700b5f36b588ad85f8a829d4d4c5c2
2021-06-01 16:09:07 +01:00
TreeHugger Robot 04ef35f854 Merge "Further adjust work profile tabs paddings in the widgets picker" into sc-dev 2021-06-01 13:13:03 +00:00
Alina Zaidi f2c79dea0d Add more education tips for widgets. (2/3)
Show education dialog on WidgetsFullSheet.
-Have a button in widget education dialog to intent into PixelTips apps.
-Make sure arrow tip view shows after dismissing education dialog on
WidgetsFullSheet if there is a widget to show it on.
-Update colors and layout for arrow tips.

Test: Tested manually
Bug: 185354491
Change-Id: I5cbdd02fc4f19a49a42dac4451b071e3d604747f
2021-06-01 13:58:18 +01:00
Steven Ng a0d49dcfb4 Further adjust work profile tabs paddings in the widgets picker
Test: Open widgets picker and observe tabs paddings are correctly set.
Bug: 188872382
Change-Id: Ib6a735bf2b0710f86b8641533cadb27116049341
2021-06-01 11:40:36 +01:00
Jon Miranda 8fc592d246 Update device paddings to spec.
Bug: 188094809
Test: verify using device profile dump
Change-Id: I51633d590bd9079ad62a79099b3f8df1cab7894c
2021-05-27 21:04:06 -07:00
Jon Miranda 2d35d4b97c Make BaseIcon.Workspace so that it can be overriden.
Bug: 188094809
Test: manual
Change-Id: Id31502e66d96806054e1cdd6549b226b2a22173e
2021-05-27 18:55:15 -07:00
Jon Miranda de907805d1 Change folderFillColor to colorBackgroundFloating.
There seems to be some nuance that prevents me from defining it once in
the base theme, so just updated all of them individually to prevent
any edge case from slipping through.

Bug: 188095988
Test: manual
Change-Id: I1dea639f174fa4ec09bda93a6e2017993b2007a5
2021-05-28 01:21:21 +00:00
Brian Isganitis 08fdf4d269 Create settings activity layout with explicit toolbar
This layout will be overridden to have a collapsible toolbar on API 31.

Test: Settings layout unchanged
Bug: 187732263
Change-Id: I0c098dd0a09a1787a10035a3d3f35ecf461cfc20
2021-05-27 18:41:18 -04:00
Samuel Fufa bd883ea788 Merge "Remove AllApps prediction edu" into sc-dev 2021-05-27 11:02:49 +00:00
Schneider Victor-tulias 9909544c8a Update gesture nav colors and animation for dark/light theming
- Added light mode gesture feedback animations
- Added color resources for the fake launcher wallpaper. Also using these color resources in the feedback animations for consistency
- Using fake previous app task color in feedback animations for consistency

Bug: 169687177
Test: manual
Change-Id: I1d28212e02c2ae750ce6241b64aa90f52b827c76
2021-05-26 12:34:29 -07:00
TreeHugger Robot d98a784d0e Merge "Overview - Remove the space withheld for proactive chips" into sc-dev 2021-05-26 00:11:18 +00:00
Vinit Nayak b74b9d2966 Merge "TaskMenu in overview UI polish" into sc-dev 2021-05-25 23:56:00 +00:00
TreeHugger Robot 3b20449045 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-25 23:41:55 +00:00
Bill Yi c84ee09dbd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifca3cdf2713b121701f57a02c88353397a2a9222
2021-05-25 22:38:33 +00:00
zakcohen dad8a80d19 Overview - Remove the space withheld for proactive chips
Remove the space in the ui that was being used for chips.
Centralize some of the logic around calculating the action margins to aid
that.

Bug: 179922117
Test: Local build and flash and run
Change-Id: Icd2f894c858fab475c5411f3f7c412b899d5b220
2021-05-25 15:29:08 -07:00
TreeHugger Robot 17385ce33e Merge "Fix full widgets picker fast scroller height." into sc-dev 2021-05-25 21:43:40 +00:00
Vinit Nayak 063cb2d892 TaskMenu in overview UI polish
Bug: 188168717
Test: TaskMenuLooks closer to mocks.
Change-Id: I1560b66a48c4c70c7c79f7307b2b76f22e30c653
2021-05-25 14:42:35 -07:00
Samuel Fufa 880fc577c0 Remove AllApps prediction edu
Test: Manual
Bug: 183579072
Change-Id: Ibaffc5ac711e35df5256baed8be57159046fbdda
2021-05-25 14:48:14 -05:00
Alina Zaidi e6521ad542 Merge "Add more education tips for widgets. (1/3)" into sc-dev 2021-05-25 17:35:27 +00:00
TreeHugger Robot 8deaffed89 Merge "Fix ripple effect shown when tapping an app row in widgets picker" into sc-dev 2021-05-25 11:53:33 +00:00
TreeHugger Robot 1002981fd7 Merge "Adjust padding, margin of tabs in the WidgetsFullSheet" into sc-dev 2021-05-25 10:49:39 +00:00
Alina Zaidi 9d24de1353 Add more education tips for widgets. (1/3)
Show Arrow education tip on WidgetsBottomSheet. This tip is shown only
once either in widgets full sheet or bottom sheet.

Test: Tested manually
Bug: 185354491
Change-Id: I6d770ed0906a5cb0f5bcfe6ae0cd327b790cf164
2021-05-25 10:50:02 +01:00
Steven Ng e90dddaaa0 Fix full widgets picker fast scroller height.
1. Fix the app title to one line.
2. Use the measured height of a header view to estimate the available
   fast scroll bar height.

Test: Open full widgets picker. Scroll to the bottom by scroll gesture.
      Observe the fast scroll bar indicator is correctly shown.
      Scroll back to top and then use the fast scroll bar to scroll to
      the end of the page. Observe the last app row is aligned to the
      bottom of the page.
Bug: 188914448
Change-Id: I57a2419d1fbfc8f946a932eebfefb67ae0c07eb6
2021-05-24 18:05:56 +01:00
Steven Ng f375e8bebc Fix ripple effect shown when tapping an app row in widgets picker
Test: Open the full widgets and tap an app. Ripple effect is applied
      to the entire row rather than just on the arrow.
Bug: 188873069
Change-Id: Id77b2055f6bc31c12bb19e695ea44aeaff36c4a6
2021-05-24 16:32:56 +01:00
Steven Ng f4afb6bc17 Remove all apps tabs elevation
Test: Set up a work profile. Open all apps and observe no shadow around
      tabs.
Bug: 188727345
Change-Id: I5b8594002dbd8155b45376103d44fbda12ebe001
2021-05-24 14:55:33 +01:00
Steven Ng ede641bd77 Adjust padding, margin of tabs in the WidgetsFullSheet
Also remove elevation set to tab to remove unwanted shadow.

Test: Set up a work profile. Then, open the full widgets picker.
      Observe padding & margin of the work / personal tabs.
Bug: 188221455
Change-Id: I761cb1c1410f87c80a5fdca3803fb8b099d499d6
2021-05-24 11:40:16 +01:00
Sunny Goyal d5500548dc Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
430465a3d5
Bug: 187353581
Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-21 07:05:02 +00:00
Steven Ng 36f9aa7530 Merge "Apply android:attr/dialogCornerRadius to widgets picker dialog top corners" into sc-dev 2021-05-20 23:46:53 +00:00
Steven Ng b46428fcd9 Merge "Remove work profile badge from widget previews" into sc-dev 2021-05-20 23:42:50 +00:00
Steven Ng 400493c70c Apply android:attr/dialogCornerRadius to widgets picker dialog top corners
Test: Open full & bottom widgets picker and observe the top corners.
Bug: 188651333
Change-Id: If091e2d760042582bb98cbd3e44663542098ecd9
2021-05-20 22:05:29 +01:00
Kholoud Mohamed 430465a3d5 Revert "Moving taskbar lifecycle to TouchInteractionService"
This reverts commit e215fb730b.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902

Bug: 188755902
Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
2021-05-20 13:32:05 +01:00
Bill Yi 34f90233c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I48b71c9a8d0d380b91f614fad5fc581a67a2fb6b
2021-05-20 01:54:58 +00:00
Steven Ng f735c738ea Remove work profile badge from widget previews
Test: Check work profile badge no longer shown on work widget in the
      full and bottom widgets pickers.
Bug: 177675123
Change-Id: I0e5e32e18df832c1919749404094d68805c30556
2021-05-19 21:45:10 +01:00
Samuel Fufa b1114a9834 Merge "[Search] Update all apps header protection" into sc-dev 2021-05-19 19:00:33 +00:00
TreeHugger Robot 1e558a2f4c Merge "Folder polish" into sc-dev 2021-05-19 18:00:18 +00:00
Jon Miranda e3104682fb Folder polish
- Update folder hint text to ensure enough contrast.
- Clamp down on alpha when animating to local color extraction
- Update colors to new spec.

Bug: 179209484
Bug: 175329686
Test: manual
Change-Id: I9471504e10f02630ae13b2c478ced1ee05bd5220
2021-05-19 14:03:09 +00:00
TreeHugger Robot 4717bae7dc Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-19 02:51:31 +00:00
Bill Yi ea03e18d60 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I77968af0ca2fab25ec12108db6c4e84d19c0ccec
2021-05-18 23:11:51 +00:00
Samuel Fufa 76b33404b5 [Search] Update all apps header protection
- Introduce spacing between header protection and search box
- introduce vertical padding for "personal | work" tab
- animate tab header protection color change when docking

Test: Manual
preview: https://drive.google.com/file/d/1eS4B7hcLExxCdjSp1IzBcziKm-9w87UR/view?usp=sharing&resourcekey=0--mtY6bCC9GJpFSUC8I5d6w
Bug: 184946772
Change-Id: I840af27c7557f1dffd7a15874aa09833514b4bb1
2021-05-18 17:14:14 -05:00
Samuel Fufa b605d1d73c Merge "Fix header protection interactions" into sc-dev 2021-05-18 19:00:37 +00:00
Sunny Goyal 5bb515b6cc Merge "Moving taskbar lifecycle to TouchInteractionService" into sc-dev 2021-05-18 17:17:27 +00:00
Jonathan Miranda 7d4aaaa73d Merge "Add WorkspaceRevealAnim, successor to StaggeredWorkspaceAnim." into sc-dev 2021-05-18 16:46:12 +00:00
Samuel Fufa 0a709374ae Fix header protection interactions
Bug: 184711608
Bug: 187790639
Preview: https://drive.google.com/file/d/1MDh71t8DQn0SxTQY3-GZTfIlGECQs_Kn/view?usp=sharing&resourcekey=0-ep9C3q9Meo8cQShVJqnKEw
Test: Manual
Change-Id: I9c939a894adc3e9cd1ed1beb7c11f9c2dd673824
2021-05-18 16:28:55 +00:00
Sunny Goyal e215fb730b Moving taskbar lifecycle to TouchInteractionService
> Inflating taskbar views with a non-launcher window context
> Removing separate taskbar view in Launcher
> Handling taskbar icon clicks directly instead of going via launcher
> Fixing some relayouts during show/hide animation

Bug: 187353581
Test: Manual
Change-Id: Ia7d44acbb770bf0345922234b3daa5cc040a5843
2021-05-17 21:47:08 -07:00
TreeHugger Robot 162dca963c Merge "Fix all apps & widgets picker tabs ripple effect" into sc-dev 2021-05-18 03:07:01 +00:00
Jon Miranda 7d2dfcfb3f Add WorkspaceRevealAnim, successor to StaggeredWorkspaceAnim.
- Added support for widgets for the new close animation.
- This anim is used with the new app close.
- This anim is not compataible with the old app close, so we need to
  keep StaggeredWorkspaceAnim in case we turn the app close flag off.

- We will also use this anim in the lockscreen to launcher anim, will
  connect them in a follow up CL.

Bug: 188413065
Bug: 173107751
Test: manual
Change-Id: Icab3fd700f2c268bb1c4509a37466e4e6748f789
2021-05-17 23:04:07 +00:00
Steven Ng 33a328370b Fix all apps & widgets picker tabs ripple effect
Test: Switch between tabs in all apps & widgets picker
Bug: 188091348
Change-Id: I9d8aae33ffe11a0c19f166517be881e06cf6d6b0
2021-05-17 23:19:16 +01:00
Hyunyoung Song b83e8f614a Merge "Catch NPE for AllAppsContainerView.dispatchRestoreInstanceState" into sc-dev 2021-05-17 21:44:16 +00:00
Steven Ng c47d8a027d Merge "Add a scrim underneath the top section of search & recommendation UI" into sc-dev 2021-05-17 17:51:41 +00:00
Alina Zaidi f0e11cbbc3 Merge "Modify pin widget dialog open-close animation." into sc-dev 2021-05-17 16:51:50 +00:00
TreeHugger Robot a9021873a9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-17 16:17:17 +00:00
Hyunyoung Song be26cb271f Merge "Fix searchbox font and other specs" into sc-dev 2021-05-17 15:56:36 +00:00
Bill Yi 420c767862 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia5ccecac9aa14e4d00d1beced9d823d80f8c1fcd
2021-05-17 10:51:51 +00:00
Hyunyoung Song 05d3e86401 Fix searchbox font and other specs
Bug: 187654557
Test: manual, see attached image on the bug

Change-Id: I570df1bcc926258ca406810ea10b3d1fdd3cd2ec
2021-05-17 01:08:44 -07:00
Hyunyoung Song 2cecad8e75 Catch NPE for AllAppsContainerView.dispatchRestoreInstanceState
TL;DR;;
Missing view id for work profile recycler view
caused restore failure as there are different type of
views that contains same id. However, even after that fix,
lack of view id in slice views generated by other process
causes failure when mFlags on these not restored slice
views needs to be accessed.

Bug: 186596139
Test: manual
Change-Id: I8a97598c27acbc05ac8a39c50fe5862e541d62ad
2021-05-17 00:47:28 -07:00
Alina Zaidi d80cec62b4 Modify pin widget dialog open-close animation.
Pin widget sheet should open from bottom up and close on drag down.
Behaviour with navigation bar is similar to that of widgets bottom sheet.

Add a drag layer and reuse AbstractSlideInView for open-close
animation.

Test: Tested manually- opening, closing through dragging/ cancel button/
back button. Adding widget to screen by dragging/ add to home screen
button.
Bug: 186124244

Change-Id: I4b77d5bdd4ed1689b651847dfed69d19cafa7456
2021-05-14 17:59:50 +01:00
Steven Ng 3503e6fa25 Add a scrim underneath the top section of search & recommendation UI
Test: In the full widgets picker, scroll up. Recommended widgets are
      not visible behind the search bar when they overlap.
Bug: 188021019
Change-Id: I13144ad534c74393bb1b12c651e734bb8bee0bc2
2021-05-14 17:03:01 +01:00
Stevie Kideckel 5fc74c7f8f Add start to widget app name layout gravity
This fixes the alignment issue in RTL. Seems like the default is start
if layout_gravity isn't set, but if you set layout_gravity to
center_vertical, you need to explicitly set start or it will go to the
left.

Bug: 188147009
Test: validated locally and in AS layout preview
Change-Id: Ic4b4d7e6dfe03e1e6dd3ead5c3821e77261b4bb5
2021-05-14 12:37:44 +00:00
Bill Yi 57d250944a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I01c33a3b97106b9b40c6175118e9d47153d8599c
2021-05-13 07:40:05 +00:00
Jonathan Miranda 951962cd05 Merge "Tuning app close, and turn on flag." into sc-dev 2021-05-12 23:28:59 +00:00
Jon Miranda b3a267b58a Tuning app close, and turn on flag.
- Tracks centery, slowed things down a bit

* We will be replacing StaggeredWorkspaceAnim with
  another animation, but I'm keeping it here in
  case we decide to turn the flag off later on.

Bug: 173107751
Test: manual
Change-Id: I5cd54ec374ad07c4912aff125a905b3b1dc7ebd5
2021-05-12 15:04:15 -07:00
Hyunyoung Song afd470fc69 Merge "Implement overshoot and squish motion in all apps open" into sc-dev 2021-05-12 17:51:31 +00:00
Alina Zaidi 3237236f26 Merge "Prevent cropping of personal/work tabs in full screen widget picker." into sc-dev 2021-05-12 17:13:50 +00:00
Hyunyoung Song 15df06d05e Merge "Fix white text on light accent color issue for all apps and widgets drawer" into sc-dev 2021-05-12 16:42:09 +00:00
Jonathan Miranda d95aa5a5d7 Merge "Remove color extraction from popup arrow, add shadows." into sc-dev 2021-05-12 15:47:43 +00:00
TreeHugger Robot 01d1cb9273 Merge "Update colors in pin widget dialog, to be similar to widget bottom sheet." into sc-dev 2021-05-12 14:56:14 +00:00
Alina Zaidi 071665c89b Prevent cropping of personal/work tabs in full screen widget picker.
Bug: 187632869
Test: Tested manually
Change-Id: I39a43ed1efae5802ffdd5d79ad3cb1a50af38d62
2021-05-12 14:57:42 +01:00
Hyunyoung Song 3af62c1e25 Fix white text on light accent color issue for all apps and widgets drawer
Bug: 187857897
Bug: 185211063

Test: manual, see screenshot on the bug
Change-Id: Ie7461ce4724c15dafda35a5c533d9539a34d68ab
2021-05-12 00:42:11 -07:00
Jonathan Miranda d75f89c6c0 Merge "Fix contrast issue with folder background and text colors." into sc-dev 2021-05-12 01:49:26 +00:00
Jon Miranda 35c5477d5c Remove color extraction from popup arrow, add shadows.
Bug: 175329686
Bug: 187014675
Test: manual

Change-Id: I84a3f23b7a9ceef004a2b1b66e5f8a10585bd113
2021-05-11 17:35:01 -07:00
Jon Miranda 7bbd03160f Fix contrast issue with folder background and text colors.
Bug: 187797251
Test: dark wallpaper, light wallpaper, toggle dark theme on both
Change-Id: I57ddfc91878d68735d5ae5ec5ab78222fda101ca
2021-05-11 17:01:53 -07:00
Shan Huang 9d16d7f192 Merge "Update smartspace and workspace text color always use black or white." into sc-dev 2021-05-11 23:38:29 +00:00
Hyunyoung Song 222a59e79a Implement overshoot and squish motion in all apps open
Bug: 187475924
Bug: 183062683
Test: manual

Change-Id: I33b6c647c45ff467c6d49cf3796f92ca366ab3f1
2021-05-11 13:49:45 -07:00
Alina Zaidi 042249ff59 Update colors in pin widget dialog, to be similar to widget bottom sheet.
Bug: 187374499
Test: Visually tested. Also tested using accessibility scanner.
Change-Id: I3be84dc394d312d03b97fe66b7e8214c4d8bef71
2021-05-11 17:47:48 +01:00
TreeHugger Robot b1754bfc06 Merge "Update workspace text shadow according to new specs." into sc-dev 2021-05-11 15:59:57 +00:00
Shan Huang 4cbe517801 Update workspace text shadow according to new specs.
Test: Manual
Bug: 185890335, 187796297

Change-Id: Iba455544cdba86ddab7f1cfcc6c30c074e55ab84
2021-05-11 22:35:27 +08:00
TreeHugger Robot 95ff5cf63e Merge "Handle config changes in Launcher" into sc-dev 2021-05-11 10:58:48 +00:00
Shan Huang f444db50aa Update smartspace and workspace text color always use black or white.
This change updates the color of texts in launcher workspace as well as smartspace.

Bug: 185890335
Test: Visual inspection after setting different wallpapers for LS and
homescreen.

Change-Id: I77b870b8f7068103d687d39da01989b93d642b3b
2021-05-11 08:46:45 +00:00
TreeHugger Robot b117c44b91 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-11 05:30:58 +00:00