Commit Graph

60459 Commits

Author SHA1 Message Date
TreeHugger Robot 93767d52ad Merge "Reset TaskView transformations on orientationHandler change" into tm-qpr-dev am: 6a84ebc7ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19981469

Change-Id: Idbfcb5231cf25cd402cd70e79e5eb0f75a5b5d2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 19:52:43 +00:00
Vinit Nayak e0f012491c Merge "Hide back button if IME shows in SUW" into tm-qpr-dev am: 188c8916ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20004092

Change-Id: Ia2e8a03d8e0ab2786668300ef611379c742b337c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 19:51:42 +00:00
TreeHugger Robot 6a84ebc7ab Merge "Reset TaskView transformations on orientationHandler change" into tm-qpr-dev 2022-10-04 19:05:43 +00:00
Vinit Nayak 188c8916ee Merge "Hide back button if IME shows in SUW" into tm-qpr-dev 2022-10-04 19:01:42 +00:00
Pat Manning e7fc4b1f63 Use wm shell splash screen animation to reveal app after tasks have appeared.
Bug: 202826469
Test: manual
Change-Id: I6a9e8a932849c30f7b572119a7f607178b5a6437
2022-10-04 19:08:54 +01:00
Winson Chung 994412d1a0 Merge "Updating launcher for pip interface cleanup" into tm-qpr-dev am: a5846c9868 am: 7d0d0f2bbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20106888

Change-Id: I49454a48b750780ebfd289b7e501ef65cc4da944
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 17:30:12 +00:00
Winson Chung 7d0d0f2bbd Merge "Updating launcher for pip interface cleanup" into tm-qpr-dev am: a5846c9868
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20106888

Change-Id: I8648bf54cadd21aef823e7881b67e84d6a34f172
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 17:19:50 +00:00
Winson Chung a5846c9868 Merge "Updating launcher for pip interface cleanup" into tm-qpr-dev 2022-10-04 16:54:48 +00:00
Pat Manning a31ff17409 Merge "Refresh taskbar apps show on DeviceProfile change." into tm-qpr-dev am: 0fa114ecc0 am: 2d8a1ef7b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19951576

Change-Id: Ifb39db9e5f2dff67647007a207319a8c76554ef3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 12:39:20 +00:00
Pat Manning 2d8a1ef7b6 Merge "Refresh taskbar apps show on DeviceProfile change." into tm-qpr-dev am: 0fa114ecc0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19951576

Change-Id: I7663f59ecdbca4121d72f8929f74c7a02b89032f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 12:07:08 +00:00
Pat Manning 0fa114ecc0 Merge "Refresh taskbar apps show on DeviceProfile change." into tm-qpr-dev 2022-10-04 11:46:48 +00:00
Alex Chau 2cf94d087e Merge "Refactor TaskbarLauncherStateController to use a single AnimatedFLoat" into tm-qpr-dev am: 2f7fd17dc1 am: 4cbe626712
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20082145

Change-Id: I35961d8403dae852741af0836dd83e62afff5784
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 11:05:44 +00:00
Thales Lima 1fa6de1784 Merge "Check for view measurement before animating" into tm-qpr-dev am: e8efdc1185 am: 5e92948c42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20073475

Change-Id: Ia2c86dc7a757c85313571a53d552dd90b6882fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 11:05:21 +00:00
Alex Chau 4cbe626712 Merge "Refactor TaskbarLauncherStateController to use a single AnimatedFLoat" into tm-qpr-dev am: 2f7fd17dc1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20082145

Change-Id: I719211763f768d08979dce6953e6d5c2bb6a8ea3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 10:34:19 +00:00
Thales Lima 5e92948c42 Merge "Check for view measurement before animating" into tm-qpr-dev am: e8efdc1185
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20073475

Change-Id: Ie0f8c40567dce7ab39ef397f4e135f4378c198d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 10:34:09 +00:00
Alex Chau 2f7fd17dc1 Merge "Refactor TaskbarLauncherStateController to use a single AnimatedFLoat" into tm-qpr-dev 2022-10-04 10:32:54 +00:00
Thales Lima e8efdc1185 Merge "Check for view measurement before animating" into tm-qpr-dev 2022-10-04 10:09:10 +00:00
Andy Wickham e5a49f4b48 Hide FloatingHeaderView while in Search state.
This prevents touches on the profile buttons (which were already
hidden due to the header view having alpha 0, but touches were
still registered).

Fix: 248338523
Test: Manually tap where the work profile button is before and
after this change. Before: switches to work profile. Afer: does
nothing in 0 state; otherwise launches item at that position.

Change-Id: Ie30661146d25740000d7a9cbe79234ac15347253
2022-10-03 23:38:49 -07:00
Vinit Nayak 8453f86320 Merge "Add margin to SUW back button" into tm-qpr-dev am: 64510b48b0 am: 55298f9901
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20004084

Change-Id: I5e43c49bd2b5fc2bd088137c3c998eec6b9eeeac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 04:29:54 +00:00
Vinit Nayak 55298f9901 Merge "Add margin to SUW back button" into tm-qpr-dev am: 64510b48b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20004084

Change-Id: Ib2daed04fdd78f8e80ad16725d5d6b80524708bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 03:43:21 +00:00
Vinit Nayak 64510b48b0 Merge "Add margin to SUW back button" into tm-qpr-dev 2022-10-04 03:10:21 +00:00
Jeremy Sim 8f59d82294 Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev am: 33e57ebc1a am: 37638afbec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20103367

Change-Id: I42842b333df3e9a6a623a9f47cf4c0c0aa784ee8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 01:00:42 +00:00
Pinyao Ting 7fd7e51fa2 Include additional error log around widget removal
As observed in b/248291728, widgets are disappeared after OTA update,
this CL includes additional logging to reveal more information.

Bug: 248291728
Test: manual
Change-Id: I5cf968efc358c3315e5e6ecc4861d5bc888569f1
2022-10-03 17:46:03 -07:00
Jeremy Sim 37638afbec Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev am: 33e57ebc1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20103367

Change-Id: If54807ba3c13eb9d8a8ccdc0defa69b35beca442
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 00:12:23 +00:00
Winson Chung 1c3f817f89 Updating launcher for pip interface cleanup
Bug: 238217847
Test: atest WMShellUnitTests
Change-Id: I375e67eeb07ffe50bf15eafb65c1e9d215118c73
2022-10-03 23:56:39 +00:00
Vinit Nayak 71af5b7a15 Merge "Null out mSplitHiddenTaskView when resetting split selection state" into tm-qpr-dev am: 66160e9dd8 am: b03ec55872
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20029582

Change-Id: I8ba442186bc330b7ecff0e9ee1b53a22fe20cffb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 23:45:45 +00:00
Jeremy Sim 33e57ebc1a Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev 2022-10-03 23:31:59 +00:00
Android Build Coastguard Worker c219457001 Snap for 9133013 from b759de4769 to tm-qpr2-release
Change-Id: I68b5cd3d5e2e9aec7986e46168babdbd944b8afc
2022-10-03 23:28:14 +00:00
Vinit Nayak b03ec55872 Merge "Null out mSplitHiddenTaskView when resetting split selection state" into tm-qpr-dev am: 66160e9dd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20029582

Change-Id: I2f2ce0e026d6dbecaacdd7f026e208d658249eae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 23:14:57 +00:00
Vinit Nayak 66160e9dd8 Merge "Null out mSplitHiddenTaskView when resetting split selection state" into tm-qpr-dev 2022-10-03 22:45:42 +00:00
Xin Li 83ecebe8e5 Merge TP1A.221005.003
Merged-In: I363c98c23f84fe570ea9cb1a40128359f5b67c9f
Change-Id: I0c718a2d5b4754c3cb9f2bc1223b3ddec24564b8
2022-10-03 13:17:47 -07:00
Jeremy Sim 86065b81e0 Fix animation slowdown when splitting from All Apps
This patch fixes a tablet bug related to splitting from All Apps. Splitting from AllApps was playing a very slow animation.

The bug occurred because there was no case set in QuickstepAtomicAnimationFactory for animating from the ALL_APPS state.

Fixed by setting the appropriate case in QuickstepAtomicAnimationFactory.

Fixes: 247053528
Test: Manual
Change-Id: I7391dc7049a6ff5a7f8c7e1ae8b69e29899248fa
2022-10-03 12:49:31 -07:00
Stefan Andonian 799a021828 Fix ViewCapture NPE. am: b759de4769 am: 371ba32e44
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20075879

Change-Id: Ia9c46040101719449fcb36d2bd6b7b686de32a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 19:27:46 +00:00
Alex Chau d67ddc4920 Taskbar in overview
- Behind ENABLE_TASKBAR_IN_OVERVIEW which is disabled by defualt
- Make taskbar unstashed in overview with background visible
- Ensure taskbar is touchable in overview

Bug: 245320601
Test: Home<->Overview, Home<->App, App<->Overview, Home->Overview->App->Home, Home->App->Overview->Home, Overview->Home->App->Overview, Overview->App->Home->Overview, App->Overview->Home->App, App->Home->Overview->App
Test: Go to AllApps, call KEYCODE_HOME, go to app and taskbar should be there
Test: App->Overview->Select->Home->App
Test: QuickSwitch -> App
Test: Repeat above with ENABLE_TASKBAR_IN_OVERVIEW x taskbarStashed on/off
Test: Repeat above with gesture and 3-button
Change-Id: Ib25d68f68e89564851b226536e456d0b2f6306f8
2022-10-03 20:15:12 +01:00
Stefan Andonian 371ba32e44 Fix ViewCapture NPE. am: b759de4769
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20075879

Change-Id: I1c44ad208cc7d36d070971ef507c735ca385cdfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 18:40:33 +00:00
Stefan Andonian b759de4769 Fix ViewCapture NPE.
The ViewPropertyRefs, when copied from 1 frame to another, where also
transferring the same "next" reference. Sometimes, the recycled
ViewPropertyRef would be the same ViewPropertyRef instance as one of the copied
ViewPropertyRefs, which would caused an NPE, since the recycled VPR
would have it's next value set to null.

Bug: 249125402
Test: Repro steps are dragging and dropping around an item on the
workspace to different locations. This consistently repro's the crash in
about 10 seconds of doing this. Afte the fix, the crash stopped.

Change-Id: Ia43d8f788eb4889c0890fea0bb839cb9fed78ada
2022-10-03 15:25:04 +00:00
Alex Chau 58bc281142 Refactor TaskbarLauncherStateController to use a single AnimatedFLoat
- Use a single iconAlignment animation
- Introduced isInLauncher/goingToLauncher/FLAGS_LAUNCHER as combined FLAG_RESUMED|FLAG_RECENTS_ANIMATION_RUNNING
- iconAlignment is now centralized in onStateChangeApplied with single source of truth

Bug: 245320601
Test: Home<->Overview, Home<->App, App<->Overview, Home->Overview->App->Home, Home->App->Overview->Home, Overview->Home->App->Overview, Overview->App->Home->Overview, App->Overview->Home->App, App->Home->Overview->App
Test: Go to AllApps, call KEYCODE_HOME, go to app and taskbar should be there
Test: App->Overview->Select->Home->App
Test: QuickSwitch -> App
Test: Repeat above with taskbarStashed on/off
Test: Repeat above with gesture and 3-button
Change-Id: Ie51b602394c155aca060a84585eb0e677e23425c
2022-10-03 11:24:00 +01:00
Arthur Hung 3c7db4901b Merge "Refactor back navigation animtion (2/2)" 2022-10-03 08:15:51 +00:00
Android Build Coastguard Worker b1646165fe Snap for 9128530 from 1aa91f0f7a to tm-qpr1-release
Change-Id: I74548488629e635596ab28dabc21dc7da65fcaab
2022-10-01 21:29:23 +00:00
Federico Baron 226ad3d58c Merge "Fix the entry animation for delightful pagination in folders" into tm-qpr-dev am: 1aa91f0f7a am: bb74f1fce7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20059409

Change-Id: I834ca656ffdbfa108f96e86fc841e3c247d3dab9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-01 08:13:02 +00:00
Federico Baron bb74f1fce7 Merge "Fix the entry animation for delightful pagination in folders" into tm-qpr-dev am: 1aa91f0f7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20059409

Change-Id: Ic31ef18fb69c57dad45dd8502db896e8aabfffa0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-01 07:42:26 +00:00
Federico Baron 1aa91f0f7a Merge "Fix the entry animation for delightful pagination in folders" into tm-qpr-dev 2022-10-01 07:21:53 +00:00
Jeremy Sim b988d224a6 Fix 2 bugs involving split staging task translation am: 978b0021a9 am: 635815666c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20087546

Change-Id: Idda3656d492a90df268c902405c4b6c96266be90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-01 02:08:01 +00:00
Android Build Coastguard Worker b33e0d8151 Snap for 9127121 from f733a716fd to tm-qpr1-release
Change-Id: I4c79e0b918aa6c100474846b1bd9308cd6e7aa8c
2022-10-01 01:25:32 +00:00
Jeremy Sim 635815666c Fix 2 bugs involving split staging task translation am: 978b0021a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20087546

Change-Id: Iffca62d17d40b168ff53c5624dc09dda2fbe4fec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-01 01:23:06 +00:00
Jeremy Sim 978b0021a9 Fix 2 bugs involving split staging task translation
This patch fixes two bugs related to the way tiles slide in when a split is staged. Previously, translations were not being completely reset, so on repeated splits, the thumbnails would retain their old translation setting and cause awkward movements to occur during the slide-in animation.

Fixed by adding setTaskViewsPrimarySplitTranslation() and setTaskViewsSecondarySplitTranslation() in resetFromSplitSelectionState().

Fixes: 249154347
Fixes: 249824716
Test: Manual on grid and non-grid Overview, in a variety of conditions
Change-Id: I2d9aa621a17f178ff8216740d76429d2ac484b39
2022-09-30 14:30:04 -07:00
Thales Lima 517cafff18 Check for view measurement before animating
Sometimes the view is there but it was not measured yet, and that was making the animation run with wrong icon position values.

Fix: 233247401
Test: manual
Change-Id: Ibcce24391e99b02ecdb492191c39b62d332abe4f
2022-09-30 16:04:42 +01:00
Android Build Coastguard Worker 6b7accb4c2 Snap for 9121707 from 888f745490 to tm-qpr1-release
Change-Id: I162b782d4cfcfb01e57a05d524eec980de8fc1b9
2022-09-29 23:26:05 +00:00
Vinit Nayak 7523b94105 Hide back button if IME shows in SUW
Fixes: 230830643
Test: Visually see no back button when IME
shows up on enter pin screen

Change-Id: Icdde92d39962c3891a56bb07de5b16a22635729e
2022-09-29 15:47:15 -07:00
Vinit Nayak c7295ee37a Add margin to SUW back button
* navButtonsLayoutParams marginEnd was removed, and
SUW was relying on that value to add margins to
SUW back button, but was returning 0.

Fixes: 242999939
Test: Visually observed in SUW test activity
adb shell am start -n com.google.android.setupwizard/.SetupWizardTestActivity

Change-Id: I5ffc421e9b731b0d9c7b7c48eab807d4419721b1
2022-09-29 15:47:15 -07:00