Commit Graph

34630 Commits

Author SHA1 Message Date
Hongwei Wang c3a9f0e75b Merge "Polish auto-enter-pip from landscape and split-screen" into sc-dev am: 005e269220
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15132509

Change-Id: Id256786bd820ea5f01174c136fc992fc2cd82999
2021-06-30 20:35:28 +00:00
Hongwei Wang 005e269220 Merge "Polish auto-enter-pip from landscape and split-screen" into sc-dev 2021-06-30 20:23:23 +00:00
Sunny Goyal 25f386edc8 Fixing some dimentions in AllSet activity
Bug: 192412172
Test: Manual
Change-Id: I599c858fc21d45dd41eaa01ff3d91863d52f6ae8
2021-06-30 12:19:30 -07:00
Jon Spivack c135e5ad01 Merge "NIU Actions: Add privacy confirmation dialog" into sc-dev am: 4e0bc773c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15098029

Change-Id: Iff86887beaf251db8f0ae8369296c7c8f09aae1b
2021-06-30 19:12:43 +00:00
Winson Chung a7d7f78c08 Defer cleaning up screenshot until after we actually switch to screenshot
- In the case where we get a screenshot on cancel, we should wait to
  finish the recents animation until the view gets a chance to update

Bug: 185643608
Test: Swipe up to overview in 2 button, hit home
Change-Id: I2ac3567006f6fa7e6f473499f6862e5e408dfc3d
2021-06-30 12:03:33 -07:00
Jon Spivack 4e0bc773c8 Merge "NIU Actions: Add privacy confirmation dialog" into sc-dev 2021-06-30 18:59:50 +00:00
Yogisha Dixit ba28286260 Merge "Log widgets source." into sc-dev am: f9acf1d5d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14690879

Change-Id: I2fa39b66ca31549f7754657b7d3bde6bdf8a5f59
2021-06-30 18:33:44 +00:00
Yogisha Dixit f9acf1d5d4 Merge "Log widgets source." into sc-dev 2021-06-30 18:18:12 +00:00
Pierre Barbier de Reuille 43e17301c4 Correct color extraction on App Widget drop.
Disable color extraction on drop until the workspace is back to its
normal size, then re-enable it and force re-coloring. This needs to
happen if the drop is on the workspace, but also if the drop is on the
secondary target.

Fix: 192354264
Test: Manual, see bug for details.
Change-Id: I79203f68843d59384503aa76f4813d886e98afa3
Merged-In: If573641e4bb5a98ed6b5008e00f70f4bbe492c24
2021-06-30 18:50:41 +01:00
Yogisha Dixit 658c5dafd4 Log widgets source.
Test: manual
(1) Upgrading to new DB version is successful (no errors thrown in logcat)
(2) Widgets that were added with the old DB version have CONTAINER_UNKNOWN as their source container
(3) Widgets that are added with the new DB version still log source container after reboot
Bug: 185778648
Change-Id: Iaa38f0be6bc4cb0d29842f9a2ea0d08de000c930
2021-06-30 17:48:14 +00:00
Tracy Zhou e9e5e51d73 [Live Tile] App surface is above launcher even after reaching Overview
Currently we place app surface below launcher and punch a hole through task view to display live tile in overview. In this change the order will be flipped, with a few benefits not limited to the following. For example, we have a surface view lifecycle bug where the surface view in a live tile app can go blank during app launch transition. This change will significantly mitigate the issue visually as the background wallpaper will not be revealed.

In order to make sure visually everything still looks the same, we will need to finish the recents animation when the user taps on the task view icon, since the menu overlaps with the task snapshort view.

This change also addresses fading out the task view when it's getting dismissed.

Test: manual
Fixes: 186531762
Fixes: 189265196

Change-Id: Ieae67fb89b60136fd81ceb8abde1a0cab8718b27
2021-06-30 17:34:13 +00:00
Vinit Nayak 0a740a074a Merge "Take margin insets into account when setting position" into sc-dev am: 0f3053ceae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15152173

Change-Id: Ib3639aeb91dabbb4283d21e3e6cb6da69af08d23
2021-06-30 17:34:03 +00:00
Vinit Nayak 0f3053ceae Merge "Take margin insets into account when setting position" into sc-dev 2021-06-30 17:29:44 +00:00
Yogisha Dixit 1e143f2c6b Merge "Log widget features to new features field." into sc-dev am: f91abaa6f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15133002

Change-Id: Ib0e8d40b2b09d1b090f7968cce73fbafde5534c2
2021-06-30 17:28:34 +00:00
Yogisha Dixit f91abaa6f9 Merge "Log widget features to new features field." into sc-dev 2021-06-30 17:25:46 +00:00
Cyrus Boadway f5f23ba119 Merge "Defer onColorsChanged updates during widget-to-home animation" into sc-dev am: 1edaed8790
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147896

Change-Id: I93c3c42dc173182c7625dea719bbc540a544234a
2021-06-30 17:24:57 +00:00
Samuel Fufa 7f3c8518f1 Polish changes for work tab
Bug: 191975224
Test: local
Change-Id: Iee1943c041ebb181d4323935ec80130fe15c62c0
2021-06-30 12:21:47 -05:00
Cyrus Boadway 1edaed8790 Merge "Defer onColorsChanged updates during widget-to-home animation" into sc-dev 2021-06-30 17:14:57 +00:00
vadimt a26516c575 Verifying success of setting default Launcher in tests
Test: local runs
Bug: 187080582
Change-Id: Iece234e58e2faa80996001f6de1943f065522400
2021-06-30 10:12:56 -07:00
TreeHugger Robot 70b8341b6d [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: b31d55d960 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8177bb7bf0b4d33f82ef4e027f47eb5068bd4d9e
2021-06-30 15:26:14 +00:00
TreeHugger Robot 8607e2171a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 814d644d81 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7d30b067a474f02f4fbdc207d01242c1b19934d2
2021-06-30 15:26:03 +00:00
TreeHugger Robot b31d55d960 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-30 15:09:53 +00:00
TreeHugger Robot 814d644d81 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-30 15:08:32 +00:00
Tony Wickham 597943985f Merge "Fully null check mRecentsAnimationController" into sc-dev am: d61f224570
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147296

Change-Id: I88d51d664b00ec21145281782612045fc6297663
2021-06-30 14:54:49 +00:00
TreeHugger Robot f0b607b401 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-30 14:48:14 +00:00
TreeHugger Robot bc4a01ee59 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-06-30 14:46:04 +00:00
Tony Wickham d61f224570 Merge "Fully null check mRecentsAnimationController" into sc-dev 2021-06-30 14:35:03 +00:00
Yogisha Dixit 4c3259a0eb Log widget features to new features field.
Bug: 185778648, 187734511
Test: manual
Change-Id: Ifa5d88602e4fccce153b207b2d57d10d13f33dc9
2021-06-30 14:14:55 +00:00
Cyrus Boadway 0d96baec13 Defer onColorsChanged updates during widget-to-home animation
Color change updates recreate the view, which can interfere with the
widget-to-home return animation, specifically the GhostView's use of the
AppWidgetHostView's render node.

Deferring the application of color changes until the end of the
animation allows the widget to settle and remove the GhostView before a
color change might recreate the widget's view.

Bug: 190818220
Test: manual
Change-Id: I6552e583ebb0e4810077d4e70fe9ecb07fd5d01a
2021-06-30 13:10:02 +00:00
Alex Chau f35a887446 Merge "Snap to relative position to snappd task when dismissing" into sc-v2-dev 2021-06-30 10:24:11 +00:00
Bill Yi e463d19173 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I282f1e29562ee9f190c054db49af69ad90394b2d
2021-06-30 08:20:10 +00:00
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
Bill Yi f0353b5a9a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1fae17d8a50cccf65bb432eef39ac7cbc77f5fd8
2021-06-30 08:17:46 +00:00
Bill Yi a77f3a3096 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie7f978c5858b3280e706d0e65d31505f5be4bb2f
2021-06-30 08:17:13 +00:00
Vinit Nayak 4ce773962e Take margin insets into account when setting position
Previously we computed insets for task menu position
whenever a Task was told that orientation had changed.
This missed a path for the TaskMenuView's onScrollChanged()
listener, which also calls set position and wasn't taking
the insets into account.

Moved the inset into setPosition() directly so it's caught
on all code paths.

Also noticed 2 bugs where
* We were calling updateChildTaskOrientation() twice, it
already happens in the call to updateOrientationHandler()
* We were directly modifying insets from the activity's
drag layer instead of copying those insets to another rect
and then modifying (this is no longer an issue since we
are not touching those insets at all anymore)

Bug: 192400086
Test: Rotated w/ task menu open for fake and real
landscape. Nothing seems broken.
Note real landscape hides the menu whereas fake one
shows it (which was behavior before this change)

Change-Id: I613dac9519220f49285655ef11a1f72e4a6d31bd
2021-06-30 06:23:38 +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
Sunny Goyal ae7ef2d5c1 Merge "AllSet page fixes" into sc-dev am: 50f43df36e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147340

Change-Id: I7a000e357abf704bceea0bedca3407439ca50206
2021-06-30 04:42:29 +00:00
Sunny Goyal 50f43df36e Merge "AllSet page fixes" into sc-dev 2021-06-30 04:31:34 +00:00
Hyunyoung Song 6eee4e4f3d Merge "Rebind recycler views if launcher activity restarted" into sc-dev am: 77c532d799
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15136464

Change-Id: Iaa257f243aac6c2378a89102ab9bbae2d412d500
2021-06-30 04:20:04 +00:00
Hyunyoung Song 77c532d799 Merge "Rebind recycler views if launcher activity restarted" into sc-dev 2021-06-30 04:00:23 +00:00
Jonathan Miranda 2178eedc6a Merge "Set elevation of popup and arrow to match. This ensures no shadow overlap." into sc-dev am: 26a485bb2a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147164

Change-Id: I71252441a356c0119eeb94bdef36ab14d370b2a2
2021-06-30 03:08:23 +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 26a485bb2a Merge "Set elevation of popup and arrow to match. This ensures no shadow overlap." into sc-dev 2021-06-30 02:56:18 +00:00
Jonathan Miranda 8acc1ad025 Merge "Add split_display device profile." into sc-dev 2021-06-30 02:55:50 +00:00
Jon Spivack 58905b4f0a NIU Actions: Add privacy confirmation dialog
This adds a dialog to inform the user that the NIU Actions buttons need to send data to Google in order to function. The user can accept or reject this. The dialog will block use of the feature until the user accepts.

Bug: 191818216
Test: Manual (Pixel 3A with multiple user profiles)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: Iedd056ce239de5269d02a31d28a9778efae34ede
2021-06-29 18:29:22 -07:00
Lucas Dupin 3fb19d41b6 Merge "Decouple zooms and blurs on app launch" into sc-dev am: c2ef0363af
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15145970

Change-Id: Idadf9a85d4de92e584a524ff48856cca5c81d664
2021-06-30 00:25:43 +00:00
Tony Wickham 8ae56bd4e3 Fully null check mRecentsAnimationController
It's already null checked everywhere else it's used.

Test: none
Fixes: 187354606
Change-Id: I50913c38b2653fe292d84fabe111ff3a3e10736d
2021-06-29 17:18:33 -07:00
Lucas Dupin c2ef0363af Merge "Decouple zooms and blurs on app launch" into sc-dev 2021-06-30 00:11:01 +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