Commit Graph

11392 Commits

Author SHA1 Message Date
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
Cyrus Boadway 239e0b5408 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: I99610b251d570b96e29dec44a3b918e413ec0918
2021-06-30 17:24:03 +00:00
Cyrus Boadway 9d609707c1 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: I9849c410aa7058ff3dc7f922c0b630c8230d3fd2
2021-06-30 17:23:56 +00:00
Cyrus Boadway 1edaed8790 Merge "Defer onColorsChanged updates during widget-to-home animation" into sc-dev 2021-06-30 17:14:57 +00:00
Bill Yi 9b578cbd52 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-06-30 16:26:34 +00:00
Tony Wickham 69e6340c91 Merge "Fully null check mRecentsAnimationController" into sc-dev am: d61f224570 am: 4eacef2e1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147296

Change-Id: Ia7c8b6feadc756c24b7f877111e60da565097920
2021-06-30 15:09:01 +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 c6192426a0 Merge "Fully null check mRecentsAnimationController" into sc-dev am: d61f224570 am: 597943985f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147296

Change-Id: Ic9a36bc25a01d9ef5832918c9898a362fa1bf6c5
2021-06-30 15:07:00 +00:00
Tony Wickham 2067c978a2 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: I70839338c0e4d9e5b20a4ed41b0341fddc0979a3
2021-06-30 15:00:48 +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
Tony Wickham 4eacef2e1b 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: Ie6cdb362ed480068fc1793ee454c3a3648a64061
2021-06-30 14:53:54 +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 930d85fe0f Merge "Snap to relative position to snappd task when dismissing" into sc-v2-dev am: f35a887446 am: fa8f4be314
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142494

Change-Id: I1c1a07020d48c77d309fe947e3717e912a447ac4
2021-06-30 10:51:37 +00:00
Alex Chau fa8f4be314 Merge "Snap to relative position to snappd task when dismissing" into sc-v2-dev am: f35a887446
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15142494

Change-Id: Icc1f598eb8a39f788c87b61dc99d4c7a12e07ef3
2021-06-30 10:36:33 +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 d76d479169 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I56634b7bcddaa88b9bbb874a54bc003d821f4090
2021-06-30 08:20:43 +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
Sunny Goyal c78573cd00 Merge "AllSet page fixes" into sc-dev am: 50f43df36e am: ae7ef2d5c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147340

Change-Id: I3892a50bfedebf111876056b3720729086434941
2021-06-30 04:57:16 +00:00
Sunny Goyal ec0dc1daf4 Merge "AllSet page fixes" into sc-dev am: 50f43df36e am: 9227721d72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15147340

Change-Id: I8a0d3ed75797454b244df9b6b6650d1a27c06afd
2021-06-30 04:56:44 +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 9227721d72 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: I70d67df56f081297722bbe761a7c0eda933aaae4
2021-06-30 04:41:39 +00:00
Sunny Goyal 895dd1cb87 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: Ibcebfcd6fa76e425bcc7c371a30ca6b5bba9df94
2021-06-30 04:40:41 +00:00
Sunny Goyal 50f43df36e Merge "AllSet page fixes" into sc-dev 2021-06-30 04:31:34 +00:00
Lucas Dupin 3d681be573 Merge "Decouple zooms and blurs on app launch" into sc-dev am: c2ef0363af am: d1ae89019b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15145970

Change-Id: Iac08951b119a35de22119e72bb84d04e8b6fede4
2021-06-30 00:36:50 +00:00
Lucas Dupin 4992eab5c4 Merge "Decouple zooms and blurs on app launch" into sc-dev am: c2ef0363af am: b9ac946e06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15145970

Change-Id: I82b1ecbc83f12cf085c2cde593eaa5150cda3f40
2021-06-30 00:35:56 +00: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
Lucas Dupin b9ac946e06 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: Ie66c9069b08c2d066e09ca8fa18b4872e3f3bde3
2021-06-30 00:24:50 +00:00
Lucas Dupin d1ae89019b 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: I29c18988d3a03cc0255b42e74c75a92fac601f06
2021-06-30 00:24:31 +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
Sunny Goyal ce50b9ed83 AllSet page fixes
> Updating background color
> Updating activity theme to not be transparent
> Updating default accent color
> Adding an accessible target to exit

Bug: 190447132
Bug: 190136972
Bug: 190454597
Test: Manual
Change-Id: Ia8ef67ed429c062a8d1109d7f444343ec4ca09cf
2021-06-29 16:32:37 -07:00
Lucas Dupin 0f00c35268 Decouple zooms and blurs on app launch
We'd like to be able to disable blurs during app launch, but without
disabling zooms as well. The previous sysprop would set the depth of
BackgroundAppState to 0, when what we want is to conserve wallpaper
zoom.

Bug: 191969790
Test: adb shell setprop ro.launcher.blur.appLaunch false
Change-Id: Ie4b26096f6ac723c3981bba2829557e6cc6c733b
2021-06-29 13:02:12 -07:00
Alex Chau ba61b98fca Snap to relative position to snappd task when dismissing
- Calculate the diff to snapped page scroll and apply in onLayout, so tasks won't jump after dismiss when not in snapped position
- In grid, always keep the relateive snapped page unchanged to avoid jump

Bug: 188793333
Test: manual
Change-Id: Id11c2d700dc55440de39cc7409d06a712cedc9bc
2021-06-29 19:54:21 +01:00
Hongwei Wang 338bdd1f94 Polish auto-enter-pip from landscape and split-screen
- Use Builder for constructing SwipePipToHomeAnimator since the
  parameter list grows
- Use mHomeToWindowPositionMap to adjust the position, this is to fix
  the position issue when auto-enter-pip from split-screen
- The position map and its inverse does not seem to fit the case when
  auto-enter-pip from landscape, leave it as it is
- Setup the SwipePipToHomeAnimator the same way in
  createWindowAnimationToHome

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/b1j4eK7BU18sOGfuDlKMFR
Bug: 190749305
Bug: 190855091
Test: manual, see video
Change-Id: Ica9ca9f43b8fd5f1898fef4c6d173502dd897872
2021-06-28 16:04:34 -07:00
Lucas Dupin 030ada9545 Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7e am: 820b0987bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116

Change-Id: I96dfdbbc80774201f129bd3712b80611fb646620
2021-06-28 22:39:03 +00:00
Lucas Dupin e7f8c8343a Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7e am: 0bf6de0d5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116

Change-Id: I570b17fbd9055017f11bb25a881ce003624bd6b8
2021-06-28 22:38:31 +00:00
Lucas Dupin 820b0987bd Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116

Change-Id: I5d4b3c70bf2201831ed25405083eaf6de1bdf92f
2021-06-28 22:28:34 +00:00
Lucas Dupin 0bf6de0d5c Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116

Change-Id: I01ca7da221bee368e8502ccf08d8327f7c5291a8
2021-06-28 22:27:45 +00:00
Lucas Dupin 996c32b10f Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116

Change-Id: I917bc0ff4bc97da1a32a673605332a824cdda07f
2021-06-28 22:27:40 +00:00
Lucas Dupin 789f01af7e Merge "Reset DEPTH at the end of launch animations" into sc-dev 2021-06-28 22:15:21 +00:00
Lucas Dupin 9d8580bd2a Reset DEPTH at the end of launch animations
This way the wallpaper won't be zoomed out if an app crashes.

Test: adb am crash <some test app>
Fixes: 191979512
Change-Id: I7576798f736d63c3e46bbac1b983b9d1a437647d
2021-06-28 11:45:14 -07:00
Alex Chau 44beff4e7f Merge "Hide overview on fold/unfold when live tile is active." into sc-v2-dev am: ed4db64369 am: be23976a6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15092851

Change-Id: I52b6c3bce54148d950486b87a09c6d4d4769f12d
2021-06-28 11:09:31 +00:00
Alex Chau be23976a6e Merge "Hide overview on fold/unfold when live tile is active." into sc-v2-dev am: ed4db64369
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15092851

Change-Id: Ia04f39c7604debf2c3ccd2d86f7db6ab1157a115
2021-06-28 10:51:44 +00:00
Alex Chau ed4db64369 Merge "Hide overview on fold/unfold when live tile is active." into sc-v2-dev 2021-06-28 10:38:15 +00:00
Tracy Zhou 10966ba3de Merge "Wallpaper and non-app targets are not necessary" into sc-dev am: 540723bd05
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15085898

Change-Id: Iea021cdcc976f3ebf1b9160b833ba0bd3e4e8b5d
2021-06-26 15:10:09 +00:00