Commit Graph

33301 Commits

Author SHA1 Message Date
Jon Spivack 3e48c63180 Merge "Send NIU Actions Intents to default Assistant" into sc-dev 2021-06-14 18:13:34 +00:00
Jonathan Miranda 1bfcb7653b Merge "Do not add padding left/right when cell layout border spacing exists." into sc-dev am: b7cab26529
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14947923

Change-Id: I9e60082c8f451edfb4254f99114d268272047627
2021-06-14 18:00:25 +00: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
Jonathan Miranda b7cab26529 Merge "Do not add padding left/right when cell layout border spacing exists." into sc-dev 2021-06-14 17:29:19 +00:00
Winson Chung 99cbbc60b5 [automerger skipped] Merge "Skip entering PIP when dismissing auto-enter pip task" into sc-dev am: 9f5ba22d74 -s ours
am skip reason: Merged-In I2057467d5146be6edc382d3745a1e5269cd76a6b with SHA-1 8e0bb9a12f is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14941832

Change-Id: I81d566f46cc0cb682c7ccf8ea8dc20d1701561f9
2021-06-14 16:51:12 +00:00
Winson Chung 9f5ba22d74 Merge "Skip entering PIP when dismissing auto-enter pip task" into sc-dev 2021-06-14 16:39:19 +00:00
Winson Chung c5d50f710a Skip entering PIP when dismissing auto-enter pip task
- Revert some changes from ag/14827090, we don't actually need to
  screenshot when dismissing, but we do need to prevent pip

Fixes: 190751761
Test: Swiping up from YT -> PIP
      Swiping up from YT to Overview to home -> PIP
      Swiping up from YT to Overview
Change-Id: I2057467d5146be6edc382d3745a1e5269cd76a6b
Merged-In: I2057467d5146be6edc382d3745a1e5269cd76a6b
2021-06-14 16:39:11 +00:00
Hyunyoung Song a9aeebc5bb Fix NPE inside REcyclerViewFastScroller
Bug: 190939643
Test: manual
Change-Id: Ic01111bb1389b2fa84d86c0ecc20f1eec0940e51
2021-06-14 09:12:30 -07:00
Samuel Fufa 96cc3c533c Fix home settings landing page
Bug: 188565060
Test: local
Change-Id: I2100d6a6e33381ea3da761f85797fed940e5a284
2021-06-14 10:18:58 -05:00
András Klöczl 71954b7ec5 Merge "Add left widget panel to Launcher home when unfolded" into sc-v2-dev 2021-06-14 15:10:05 +00:00
Andras Kloczl dbf577af46 Add left widget panel to Launcher home when unfolded
Test: manual
Bug: 175939730
Change-Id: I9831e7fa95084db12953ec7cb2eb725e7549e01d
2021-06-14 12:22:05 +02:00
Stevie Kideckel 96592dedc2 Merge "Use LayoutManager.onLayoutCompleted as a signal that content has changed" into sc-dev am: d541300f0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14939014

Change-Id: I80f24f0fd64942056d6ca7334647c137f0f9bb77
2021-06-14 09:29:59 +00:00
Stevie Kideckel d541300f0e Merge "Use LayoutManager.onLayoutCompleted as a signal that content has changed" into sc-dev 2021-06-14 09:18:06 +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
Winson Chung 443d89cec5 Merge "Ignore source hint rect if it is too small" into sc-dev am: a50c38c457
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14930117

Change-Id: I8afccaf98f67909f907c72d75f49db7b241701b4
2021-06-13 23:09:38 +00:00
Winson Chung 8e92b41238 Merge "Skip entering PIP when dismissing auto-enter pip task" into sc-v2-dev 2021-06-13 22:55:57 +00:00
Winson Chung a50c38c457 Merge "Ignore source hint rect if it is too small" into sc-dev 2021-06-13 22:55:48 +00:00
Winson Chung 4cbe0ec253 Merge changes Ib7d3a07e,Ic22ccf17 into sc-dev am: b009faca5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14930113

Change-Id: Ie92bd9c58262bc945383a8ab417b39389d4eeddc
2021-06-13 21:31:12 +00:00
Winson Chung 302a3df29a Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev am: be2a0989ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14940326

Change-Id: I0ec916b62730bf129588b97f676da55893861487
2021-06-13 21:31:07 +00:00
Brian Isganitis 225e6ba272 Merge "Revert "Revert "Update preferences to Material Next styling""" into sc-v2-dev 2021-06-13 20:57:25 +00:00
Winson Chung 8e0bb9a12f Skip entering PIP when dismissing auto-enter pip task
- Revert some changes from ag/14827090, we don't actually need to
  screenshot when dismissing, but we do need to prevent pip

Bug: 190751761
Test: Swiping up from YT -> PIP
      Swiping up from YT to Overview to home -> PIP
      Swiping up from YT to Overview
Change-Id: I2057467d5146be6edc382d3745a1e5269cd76a6b
2021-06-13 20:52:30 +00:00
Winson Chung b009faca5e Merge changes Ib7d3a07e,Ic22ccf17 into sc-dev
* changes:
  Disallow auto-enter PIP when there is an existing PIP
  Don't use icon home animator when entering PIP
2021-06-13 20:50:51 +00:00
Winson Chung be2a0989ce Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev 2021-06-13 20:49:58 +00:00
Winson Chung 274da5daab Merge "Add sdk check to recyclerviewfastscroller" into sc-dev am: beebc45e5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14947922

Change-Id: Icfee1975a431260e70138a767c3986e70eef4335
2021-06-13 03:29:05 +00:00
Winson Chung beebc45e5d Merge "Add sdk check to recyclerviewfastscroller" into sc-dev 2021-06-13 03:13:49 +00:00
TreeHugger Robot bd54f2bcb6 Merge "Polish the gesture navigation tutorial sandbox" into sc-dev am: cfa0baeca6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14924450

Change-Id: I21c2b5eb3d8b4d4d4c2cfdf16411a55b8bc6be1c
2021-06-13 01:45:59 +00:00
TreeHugger Robot cfa0baeca6 Merge "Polish the gesture navigation tutorial sandbox" into sc-dev 2021-06-13 01:25:56 +00:00
Stevie Kideckel 86ba4cc157 Merge "Account for header margin depending on which header is selected" into sc-dev am: 2f0c5ac3c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14937091

Change-Id: I0fbbb2d708da27c795171baa79e751cc43bb60fc
2021-06-12 21:58:33 +00:00
Stevie Kideckel 2f0c5ac3c8 Merge "Account for header margin depending on which header is selected" into sc-dev 2021-06-12 21:47:01 +00:00
Winson Chung 62b5692736 Ignore source hint rect if it is too small
- When the source hint rect is too small, we can't do a nice transition
  when going home (it would require scaling the surface up to fit the
  rect, which conflicts spatially with the crop down to launcher
  icon/pip), so in this case, just fallback to the overlay

Bug: 190464560
Test: Enter YT Pip, play video, swipe it down to miniplayer then
      enter pip
Change-Id: I44b253ca440f6d2ca0eb20eef3454c5d4e3ae3e9
2021-06-12 13:58:32 -07:00
Winson Chung 954681d837 Disallow auto-enter PIP when there is an existing PIP
- Remove some deprecated calls when registering task stack listeners

Bug: 190464560
Test: Enter YT Pip, try to enter another auto-enter PIP app
Change-Id: Ib7d3a07effadb7b13f7c37f938741e27cf0e254e
2021-06-12 13:58:32 -07:00
Winson Chung 5300fce94f Don't use icon home animator when entering PIP
- If the app supports pip, can just do the fallback workspace
  home animation since the app will not be going to the icon

Bug: 190464560
Test: Open YT, swipe up, ensure it goes to the icon,
      Reopen YT video, swipe up, ensure it goes into PIP without
      icon animation
Change-Id: Ic22ccf17c664b9941ed944c0e39dc1f8d4efa84a
2021-06-12 13:58:17 -07:00
Cyrus Boadway f3e5b69bce Merge "Add activity-start/return animation to widget configuration" into sc-dev am: f2ec20325b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14622872

Change-Id: Icfb0de63cfa3ef4ce9fb018daa9f9608deb2b868
2021-06-12 17:27:34 +00:00
Cyrus Boadway 801dbf90c4 Merge "Use the splash screen background color as the fallback background color" into sc-dev am: 3616f29f83
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881306

Change-Id: I5ad3b65fb0e74ca77e37aa9bea590f82519283a0
2021-06-12 17:27:27 +00:00
Cyrus Boadway f2ec20325b Merge "Add activity-start/return animation to widget configuration" into sc-dev 2021-06-12 17:15:11 +00:00
Cyrus Boadway 3616f29f83 Merge "Use the splash screen background color as the fallback background color" into sc-dev 2021-06-12 17:14:49 +00:00
TreeHugger Robot c13b47f7bf Merge "Fix CellLayout cast exception when drag is canceled" into sc-dev am: 76f5572648
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14948453

Change-Id: I4d23a6d0cc1806761bf9655ba8d823813ec8b630
2021-06-12 12:39:52 +00:00
TreeHugger Robot 76f5572648 Merge "Fix CellLayout cast exception when drag is canceled" into sc-dev 2021-06-12 12:24:06 +00:00
Jon Miranda af6ebe87ea Do not add padding left/right when cell layout border spacing exists.
Bug: 188094809
Test: enable layout bounds and view text spanning entire cell
Change-Id: Ia7ed45d0e844b2594a8708e03fe385a321345f5e
2021-06-11 18:02:49 -07:00
Hyunyoung Song ebd88cb00b Add sdk check to recyclerviewfastscroller
Bug: 189982238
Test: builds
Change-Id: I2298a67fd957cd2a77c8e5e4c34b828c044f1a61
2021-06-11 15:55:37 -07:00
Cyrus Boadway 5fcc3a90b0 Fix foreground position during widget home animation
The home return animation applies a position animation to all views in
the workspace. Since the widget uses a GhostView of the original widget
to represent the foreground of the animation, that animation was
reflected in the foreground's positioning.

The CL creates an ignore list of workspace views to which an animator
should not be applied.

Bug: 190488979
Test: manual
Change-Id: I5a86165e945336693eedd253a02bda1e1eb6662d
2021-06-11 22:00:53 +00:00
Sunny Goyal a7b018535b Ensure that the cancel and end listener are called when cancelling state animation
Bug: 190856140
Test: Manual
Change-Id: Ib6b869445cee9fad2a97a590d27429140f2b3ba9
2021-06-11 14:53:55 -07:00
vadimt 1e1ad449a8 Logging UPs and DOWNs that TAPL injects
Test: presubmit
Bug: 190748682
Change-Id: I82e792724bab178a9c3ca190609af913fbaf4a87
2021-06-11 14:10:45 -07:00
Jon Spivack 77edb686d7 Send NIU Actions Intents to default Assistant
This changes the recipient for NIU Actions from a package hard-coded in a config file to the currently selected default Assistant. The user can change this under Settings -> Default apps.

ImageActionUtils has also been updated to handle the case where its
Intents cannot be resolved, preventing a crash if the user sets the
default Assistant to something that cannot receive NIU Actions.

Bug: 186655099
Test: Manual (Pixel 3A, set default Assistant to Google Go and None)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I03b93597092575902d507615f32b63f4050c4c69
2021-06-11 13:58:57 -07:00
vadimt 6c2e3b3031 Removing UB flavor of TAPL library
Test: presubmit
Bug: 187761685
Change-Id: Ide5060886f1b9856c1046bc2028f55418e8c1e0e
2021-06-11 13:34:57 -07:00