Commit Graph

12553 Commits

Author SHA1 Message Date
Luca Zuccarini 9797a234f2 Merge "Unify the source of truth for NORMAL <> ALL_APPS transitions." into tm-qpr-dev am: 4a0129fa5f am: 0e12609cb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18911769

Change-Id: I0c9d5f68008c4018e76db5121ff42f4af8315c66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 10:41:08 +00:00
Alex Chau 4aecfa4068 Merge "Check null before getting DeviceProfile in AbsSwipeUpHandler" into tm-qpr-dev am: f7526085a9 am: e0f3bc67d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19038729

Change-Id: I62b7dd26970960b8099bcbf956aff40d4fc1b5e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 10:39:59 +00:00
Luca Zuccarini 4a0129fa5f Merge "Unify the source of truth for NORMAL <> ALL_APPS transitions." into tm-qpr-dev 2022-06-24 10:25:49 +00:00
Alex Chau f7526085a9 Merge "Check null before getting DeviceProfile in AbsSwipeUpHandler" into tm-qpr-dev 2022-06-24 10:05:27 +00:00
Sunny Goyal 23dca1500b Merge "Fixing wrong flags used by AllAppsController in SystemUiController" into tm-qpr-dev am: c3a5c4b16e am: 062861eddc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19037687

Change-Id: I4c089c7b71faa32e5604e2cbf95be7a7e592fd55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 23:37:08 +00:00
Sunny Goyal c3a5c4b16e Merge "Fixing wrong flags used by AllAppsController in SystemUiController" into tm-qpr-dev 2022-06-23 22:52:11 +00:00
Tony Wickham c214335eba Log when MotionPauseDetector detects onMotionPauseChanged
Test: verified logging locally
Bug: 232548865
Change-Id: I587481a380148127f715c5b1b59436b2cbc1533e
2022-06-23 15:05:42 -07:00
Tracy Zhou 0a0fcb809c Perform haptic feedback on nav button key press
Fixes: 203614307
Test: manual
Change-Id: Icaea3f5e436522f23202c20fcc7f7c5dbe309372
2022-06-23 14:29:34 -07:00
Schneider Victor-tulias ef1903c0c8 Merge "Fix a potential null-pointer onActivityDestroyed" into tm-qpr-dev am: 2df19a2345 am: 26d5306cfc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18936784

Change-Id: Ib9bc52b71dc51f4eed5912406e3811baaabbc50f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 19:07:24 +00:00
Schneider Victor-tulias 2df19a2345 Merge "Fix a potential null-pointer onActivityDestroyed" into tm-qpr-dev 2022-06-23 18:29:09 +00:00
Alex Chau 7ba6cadf27 Check null before getting DeviceProfile in AbsSwipeUpHandler
Fix: 236677962
Test: manual
Change-Id: Ibf3dbc6db509a54c87dc4bd64a7c7ea213870708
2022-06-23 12:05:42 +01:00
Pat Manning 6d17a71d19 Detect force visible nav bar based on kids mode.
WM was changed to use NAV_BAR_KIDS_MODE instead of NAV_BAR_FORCE_VISIBLE, this needs to update to match.

Fix: 229580780
Test: manual.
Change-Id: I38fb23dcc85676593a3f8f0851676bc526802d2e
(cherry picked from commit c773d7cdc8)
2022-06-22 21:27:27 +00:00
Sunny Goyal 24b441051e Fixing wrong flags used by AllAppsController in SystemUiController
Bug: 236857339
Test: Verified the UI manually
Change-Id: I2773837932ed50a59ebc9d2810f9e7ee501b6f6b
2022-06-22 12:09:22 -07:00
Alex Chau 7356c13760 Merge "Revert "Finish recents animation on activity destroyed."" into tm-dev am: ed2e7719cb am: 90abf51d5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19015866

Change-Id: I3d68a995880a27c953164e2d4767f63ab38b0bfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 12:39:41 +00:00
Alex Chau 0aa09de3a0 Merge "Revert "Finish recents animation on activity destroyed."" into tm-dev am: ed2e7719cb am: 94a2da3d22
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19015866

Change-Id: I296dbd08a9aa530e19efd0b5de067d4b0641a66a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 12:39:04 +00:00
Alex Chau ed2e7719cb Merge "Revert "Finish recents animation on activity destroyed."" into tm-dev 2022-06-22 11:59:31 +00:00
Sunny Goyal 506165689f Revert "Finish recents animation on activity destroyed."
This reverts commit 0fd3b13d01.

Reason for revert: b/236514960
Bug: 228137694
Bug: 230373809

Change-Id: Ifed5f2a13fda4409982d548e3212bd16c81b63bc
2022-06-22 11:59:13 +00:00
wilsonshih 9840bdaa13 [Shell Transition]Fix live tile be hidden by wallpaper leash.
A generic fix to specific layers for live tiles/wallpaper.
Because there cannot sure the absolutely z-order of recents surface, we
can always set wallpaper layer to bottom, and set the z-order of live
tiles to either MAX or MIN + 1, so live tile can always above wallpaper,
also the live tile can be show above/below recents surface based on
mDrawsBelowRecents.

Test: enable shell transition, open app then entering recents, verify
the live tile stay visible when entering recents. And the shared
indicators visible when state transition complete.
Test: also verify above test for legacy transition.
Bug: 236410500

Change-Id: I0f86d7617af1d96c28783320248af64f576bd570
2022-06-22 15:21:49 +08:00
Schneider Victor-tulias fec69168a9 Merge "Fix taskbar unstash animation delay when launching a split task." into tm-qpr-dev am: 6c71fe71bd am: b683d685d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18875100

Change-Id: Ic4f6e51ea907e9af1b3bee5b01cb2684aaa61ff3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-21 20:17:39 +00:00
Schneider Victor-tulias 6c71fe71bd Merge "Fix taskbar unstash animation delay when launching a split task." into tm-qpr-dev 2022-06-21 19:38:46 +00:00
Schneider Victor-tulias bfde6b2e5d Fix a potential null-pointer onActivityDestroyed
Fixes: 234082544
Test: started recents from a large screen and phone
Change-Id: I54ee93793ec146d1b0b0f00f23256aaca5975bc0
2022-06-21 12:34:02 -07:00
Schneider Victor-tulias 5bb2478b18 Fix All set activity not drawing on initial swipe. am: 4d18da78c0 am: c4831dbd10
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18930603

Change-Id: Ifdc54e2c858c5f717d61486af1b3bab86c1072d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-20 08:12:46 +00:00
Schneider Victor-tulias dfadafe45b Fix All set activity not drawing on initial swipe. am: 4d18da78c0 am: 3a126d78a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18930603

Change-Id: Ie74ad15bc52082615cabced4f86c33e69de9560c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-20 08:10:49 +00:00
Sukesh Ram 521daeb05d Merge "Add app predictions to secondary display app drawer & fix tab UI." 2022-06-17 21:36:46 +00:00
Sukesh Ram 9e5fe63a22 Add app predictions to secondary display app drawer & fix tab UI.
Bug: 233926067
Test: Manual
Change-Id: I2f45a4b30964b365bf149e8864a3af2ea909a237
2022-06-16 22:44:24 +00:00
Schneider Victor-tulias 4d18da78c0 Fix All set activity not drawing on initial swipe.
The launcher was not properly preloading upon launching the All Set Activity. The Launcher would only start loading once the user started swiping up. This would stop the all set activity from drawing.

Test: Factory reset with a restore and tested the all set page.
Fixes: 234536107
Change-Id: I6bcb805ea6c43fb993f2b57499444ea62bcc37e1
2022-06-16 20:38:24 +00:00
Luca Zuccarini c703f3a3e0 Unify the source of truth for NORMAL <> ALL_APPS transitions.
Bug: 231682175
Bug: 234812580
Test: manual
Change-Id: I5b66735474915d7a59bda337f67df37ff397908a
2022-06-16 16:40:26 +00:00
Tony Wickham d100f6825f Merge "Clear MotionPauseDetector onRecentsAnimationCanceled()" into tm-dev am: 9d5f64adf1 am: 1cba5f9d47
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18914942

Change-Id: Ib76e6458f71282ebb7753db8c4ea9b671fb0fa19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 15:28:03 +00:00
Tony Wickham ac9146938f Merge "Clear MotionPauseDetector onRecentsAnimationCanceled()" into tm-dev am: 9d5f64adf1 am: 50f86b10a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18914942

Change-Id: I1ad3f74bcee7dac1f3981c50f4b11f38db5ede75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 15:27:26 +00:00
Tony Wickham 9d5f64adf1 Merge "Clear MotionPauseDetector onRecentsAnimationCanceled()" into tm-dev 2022-06-16 14:55:48 +00:00
Alex Chau 47d2d5e196 Merge "Detect force visible nav bar based on kids mode." into tm-qpr-dev am: ccc55f1668 am: 5180f06252
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18910230

Change-Id: I142a55717dcbfb432db49f1184d1017a30d5bfe6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 14:51:55 +00:00
Alex Chau ccc55f1668 Merge "Detect force visible nav bar based on kids mode." into tm-qpr-dev 2022-06-16 13:55:14 +00:00
Alex Chau b583f18e35 Merge "Animate inline QSB between home and apps" into tm-qpr-dev am: a5ae4c2e57 am: 7e77cda9d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18799573

Change-Id: I3dae91a244c996474f4ec31a950323c1fc5c2716
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 08:49:02 +00:00
Schneider Victor-tulias e164995f9e Fix taskbar unstash animation delay when launching a split task.
Fixes: 232033354
Test: switched between split and unsplit tasks using 3 button nav and gesture nav
Change-Id: I9a4e2eb08e9970540093e3dc60b64a372be2052f
2022-06-15 14:55:37 -07:00
Alex Chau c1d26448c5 Animate inline QSB between home and apps
- Added a QSB to taskbar to be animated between inline QSB and taskbar
- Passed endValue of taskbar animator to TaskbarController to have aniamtion variation between home -> app and app -> home
- Tuned duartion of taskbar animation and also stagger animation when taskbar is present
- Disabled scaling down of taskbar and inline QSB for home -> app
- Disabled stagger animation of taskbar and inline QSB for app -> home

Bug: 220733187
Test: manual
Change-Id: I4aac0bbc343b992a0472298595770e2bf2a55990
2022-06-15 22:12:29 +01:00
Vinit Nayak d18304ca15 Close all open views for 1P and 3P launchers
* Previously TaskView was closing task menu view, but
that got removed since launcher was doing that on
state transition.
* Only 1P launcher was doing that and not 3P launcher,
moved call to remove open views to parent class

Test: Invoking split on 3P launcher doesn't result in a crash
Bug: 199342537
Change-Id: I6afbe7640ede362a677e15a33409a7cabdb8cca9
2022-06-15 14:09:49 -07:00
Tony Wickham bed0d636fe Proper fix for gesture nav flicker using runOnPageScrollsInitialized()
I root caused the two areas causing the flicker:
A. If page scrolls aren't initialized when we get onActivityInit(), the first scroll even after linkRecentsViewScroll() will jump based on min scroll (due to Clear all button). Fix is to defer linking until page scrolls are initialized.
B. If page scrolls aren't initialized when the gesture starts, RecentsView can jump to the min scroll when calling showCurrentTask(), since that calls setCurrentPage(getRunningTaskIndex()) which might be out of bounds. Fix is to defer that setCurrentPage() until page scrolls are initialized.

Test: open a random app that hasn't been opened in a while, touch down
on nav handle and see if RecentsView scrolls partially or fully
offscreen; repeat 20 times to be sure
Fixes: 233112195

Change-Id: I000960775f8735920d97c87942065a430c9dce0c
2022-06-15 19:08:32 +00:00
Tony Wickham a379435d04 Clear MotionPauseDetector onRecentsAnimationCanceled()
Fixes: 234022857
Test: Open ImCapture and swipe up to home; repeat 20 times and ensure never see empty overview tasks over launcher
Change-Id: Icef6d7a54000e1e21453feeae7e207679077b772
2022-06-15 11:59:59 -07:00
Pat Manning c773d7cdc8 Detect force visible nav bar based on kids mode.
WM was changed to use NAV_BAR_KIDS_MODE instead of NAV_BAR_FORCE_VISIBLE, this needs to update to match.

Fix: 229580780
Test: manual.
Change-Id: I38fb23dcc85676593a3f8f0851676bc526802d2e
2022-06-15 15:03:52 +01:00
Winson Chung 4d5ce7c16c Merge "Snap to running task if it's offscreen when back is invoked" into tm-dev am: 7d54b06c29 am: 43f3398d25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18897728

Change-Id: Iaf6037519f6985c44d6198bc772f3a6ef375b87f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 04:23:50 +00:00
Winson Chung e9ab04e140 Merge "Snap to running task if it's offscreen when back is invoked" into tm-dev am: 7d54b06c29 am: 17418a422c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18897728

Change-Id: I7ff8a51c80d3c07c9849cb4851311f305dc25ee7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 04:23:09 +00:00
TreeHugger Robot c28a0e4bb9 Merge "Prevent showing divider if launcher was never shown" into tm-qpr-dev am: ec8a85099e am: e4882a9761
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18764766

Change-Id: Iea5987760fa71f8b1b0f25d7aa1281964d21d8f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 04:08:22 +00:00
Winson Chung 7d54b06c29 Merge "Snap to running task if it's offscreen when back is invoked" into tm-dev 2022-06-15 03:30:16 +00:00
TreeHugger Robot ec8a85099e Merge "Prevent showing divider if launcher was never shown" into tm-qpr-dev 2022-06-15 03:29:21 +00:00
Tracy Zhou 8cb12a7f69 Merge "Fix "software rendering doesn't support hardware bitmaps" from task bar all apps" into tm-qpr-dev am: 51ceb5f200 am: fc8e332deb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18866023

Change-Id: Icd6dbd27143df36e16b3aeaeedb5be10212d9db2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 23:09:05 +00:00
Tracy Zhou 51ceb5f200 Merge "Fix "software rendering doesn't support hardware bitmaps" from task bar all apps" into tm-qpr-dev 2022-06-14 22:08:05 +00:00
Winson Chung 2345fee566 Snap to running task if it's offscreen when back is invoked
- If the user has scrolled the running task offscreen, then
  snap back to the task if back is invoked.

Bug: 233952141
Test: Swipe to overview, scroll away from the current task
      and then go back
Change-Id: Icc5040d4b38c97e0329f937e24bd517a71a32f13
2022-06-14 21:20:05 +00:00
Tracy Zhou f3b2bd67d4 Merge "Use withLayer for live tile layering" into tm-qpr-dev am: 844efbaa75 am: b0a6846c48
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18820874

Change-Id: I32cf12308bc2f3c48b8843b24635b61f5245f1c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 19:04:01 +00:00
Tracy Zhou 844efbaa75 Merge "Use withLayer for live tile layering" into tm-qpr-dev 2022-06-14 18:12:03 +00:00
Winson Chung 3c105a7cd6 Merge "Updating call to match change in interface" into tm-dev am: baf27c1b5b am: c692e966c7 am: 519882d21f am: 68e5aa47ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18800135

Change-Id: Ide0668ea54803ba80da150f7b70794318ab94def
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-14 18:06:39 +00:00