Commit Graph

11209 Commits

Author SHA1 Message Date
Sunny Goyal 5145e474d6 Merge "Removing back-button alpha animation code" into tm-qpr-dev am: 676d19c171
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19915471

Change-Id: I2958d9cd87323c5a3934904120d550fbb2d2f411
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 17:16:38 +00:00
Sunny Goyal 1eb1124d82 Removing back-button alpha animation code
Back button is only animation in 2-button UI which is not supported anymore

Bug: 246006580
Test: Presubmit
Change-Id: I7385b07272e44c1f9f0488c158e1b4ee67060120
2022-09-09 17:15:24 -07:00
Vinit Nayak 822e9bbf88 Merge "Disable split pair long press smart actions" into tm-qpr-dev am: 5aa6deff8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19890715

Change-Id: I0667bea3ba2d29a1af7b3013a6ed090bc15dd241
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 19:17:31 +00:00
Vinit Nayak 5aa6deff8d Merge "Disable split pair long press smart actions" into tm-qpr-dev 2022-09-08 18:51:05 +00:00
Schneider Victor-tulias 155d8027a5 Merge "Add STATE_LAUNCHER_DRAWN printing" into tm-qpr-dev am: 5f4e93d669
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19890487

Change-Id: I47668a9bd84a4a2550431e6fd12e370311cdadd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 18:19:03 +00:00
Schneider Victor-tulias 364021226d Merge "Finish recents animation to the matching state." into tm-qpr-dev am: 0b828e291c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19697943

Change-Id: I32529fa4410c61d7c967873ca5c118fa53e7369c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 18:18:54 +00:00
Schneider Victor-tulias 5f4e93d669 Merge "Add STATE_LAUNCHER_DRAWN printing" into tm-qpr-dev 2022-09-08 18:14:20 +00:00
Schneider Victor-tulias 0b828e291c Merge "Finish recents animation to the matching state." into tm-qpr-dev 2022-09-08 18:11:43 +00:00
Ats Jenk df6d7ffc46 Merge "Filter out active freeform tasks from recents" into tm-qpr-dev am: accde3a686
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19817526

Change-Id: I0363eefb1ff54f2d81ef28be947a1b9f4623bfae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 16:12:48 +00:00
Ats Jenk accde3a686 Merge "Filter out active freeform tasks from recents" into tm-qpr-dev 2022-09-08 16:07:19 +00:00
Jeremy Sim de313d7a44 Merge "Prevent Overview Actions from appearing during split from home" into tm-qpr-dev am: 8611800206
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19833885

Change-Id: Ibd280401ecd22d6289144652658b79ebcd2bd403
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 01:16:34 +00:00
Jeremy Sim 8611800206 Merge "Prevent Overview Actions from appearing during split from home" into tm-qpr-dev 2022-09-08 00:45:41 +00:00
Vinit Nayak e6c1c0ebf6 Disable split pair long press smart actions
Fixes: 236891562
Test: Long press launches task on split pairs.
Fullscreen overview tasks unchanged.

Change-Id: I5ff5377ddbf2bad60b3158dfef7ed2a8073fa0c4
2022-09-07 16:29:17 -07:00
Schneider Victor-tulias 07211eaed4 Add STATE_LAUNCHER_DRAWN printing
Added loging to only print and/or track multistatecallback states

Bug: 227514916
Test: tried various gestures and printed logs
Change-Id: I487b09ca0660fb385c34b49523a2417f11fcde00
2022-09-07 15:46:49 -07:00
Ats Jenk 461c3b3bd0 Filter out active freeform tasks from recents
Freeform tasks will show up as a separate, single tile in recents.
Filtering them out right now.

Bug: 244348395
Test: atest RecentTasksControllerTest RecentTasksListTest
Change-Id: Ifb197031076a8d8934cea78c6b68cb059477a81a
2022-09-07 15:32:02 -07:00
Jeremy Sim 7af10ad02c Prevent Overview Actions from appearing during split from home
Overview Actions will no longer erroneously appear when initiating a split from home.

The bug occurred because split from home causes an irregular state where the user is in split select, yet there is still a focused (main) task in Overview. Overview Actions did not anticipate this state and had no case to handle it.

Fixed by adding a check to Overview Actions so that they will never show when split selection is active.

Fixes: 244499708
Test: Manual
Change-Id: Idf1762c306dceb5048cefec8fa68ac9ca5468379
2022-09-07 12:13:47 -07:00
Alex Chau 2cda6fee53 Merge "Use real IDP in DeviceProfileTest" into tm-qpr-dev am: 0f1001c7b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19717456

Change-Id: I8b6e68788cde685ee9ed66786714d836b4ffaa13
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 14:25:43 +00:00
Alex Chau 0f1001c7b1 Merge "Use real IDP in DeviceProfileTest" into tm-qpr-dev 2022-09-07 13:45:16 +00:00
Alex Chau e818bcb997 Use real IDP in DeviceProfileTest
- Mock WindowManagerProxy instead of IDP in DeviceProfileTest
- Extracted NavigationMode to standalone class
- Moved parseNavigationMode to WindowManagerProxy so it can be mocked
- Moved DeviceProfileTest to internal repo

Bug: 242086027
Test: DeviceProfileTest
Change-Id: Ia5a43293b1380f04d786d2adf8503cfd10f7674a
2022-09-07 10:35:21 +01:00
Sunny Goyal fad9fc1c6a Merge "Moving view capture dump to a service to allow longer timeout" into tm-qpr-dev am: 7a6c610626
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19746954

Change-Id: I725789d75f5596ae9b2efb6c48264f54360d81c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-07 05:12:54 +00:00
Sunny Goyal 7a6c610626 Merge "Moving view capture dump to a service to allow longer timeout" into tm-qpr-dev 2022-09-07 04:47:19 +00:00
Schneider Victor-tulias 38fb33bfca Merge "Expand on gesture navigation error detection." into tm-qpr-dev am: 2ae4420a12
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19671572

Change-Id: I13e9d67e843c657263578943efa35769ed7b7300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 18:05:47 +00:00
TreeHugger Robot 45a39e360b Merge "Made getOnBoardingPrefs @Nullable & avoid NPE" into tm-qpr-dev am: db32818a4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19818711

Change-Id: Iff335f7db89bec9675d0028953fb47d3359d103e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 18:05:39 +00:00
Schneider Victor-tulias 2ae4420a12 Merge "Expand on gesture navigation error detection." into tm-qpr-dev 2022-09-06 17:32:02 +00:00
TreeHugger Robot db32818a4e Merge "Made getOnBoardingPrefs @Nullable & avoid NPE" into tm-qpr-dev 2022-09-06 17:29:28 +00:00
Mateusz Cicheński e1b2d018ed Merge "The shelf height was mistakenly provided as width, making it equal to 0." into tm-qpr-dev am: 77593150da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19836119

Change-Id: I13ba5ac31bcffe42270b4042a22ce212ec7482d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 16:54:58 +00:00
Mateusz Cicheński 77593150da Merge "The shelf height was mistakenly provided as width, making it equal to 0." into tm-qpr-dev 2022-09-06 16:36:48 +00:00
Alex Chau c47cb0463c Merge "Enable adjacent task animation for grid" into tm-qpr-dev am: cec6e2c914
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19619264

Change-Id: Ie22746b1f572fba7a8c11b2926559079d1d25026
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 15:33:07 +00:00
Alex Chau 4a206837c9 Enable adjacent task animation for grid
- Enable adjacent task animation for grid tasks
- Only parallax for focused task and only when it's fully visible

Bug: 236963497
Test: manual
Change-Id: I6c681e112f3eb2c7075bc98fab405d978f5057d1
2022-09-05 11:09:28 +01:00
Mateusz Cicheński 26db3bb62a The shelf height was mistakenly provided as width, making it equal to 0.
Bug: 244797561
Test: manually
Change-Id: I28e9c34bb0feb643c5d7b652c055d5fdceaec878
2022-09-03 04:33:18 +00:00
Schneider Victor-tulias 7ad70b6066 Expand on gesture navigation error detection.
- Added some missing error detection:
    1. screenshot capture errors
    2. recents scrolling errors
    3. end-of-gesture callbacks
- Added some more explanation for OverviewInputConsumer selection reason
- Added logging the current task's package name to help identify gestures

Bug: 227514916
Bug: 243471493
Test: Ran launcher, performed multiple gestures and checked logs
Change-Id: I8b10cc75f8640a674c6fed6b06efa4763c9635a2
2022-09-02 15:53:24 -07:00
Jeremy Sim 5ebdb63a9d Merge "Fix bug with Launcher animation canceling, esp. around OverviewSplitSelect" into tm-qpr-dev am: afff936235
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19659546

Change-Id: I702f1f3df37757d6c31d23b5812bf48d6a282069
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 21:20:15 +00:00
Jeremy Sim afff936235 Merge "Fix bug with Launcher animation canceling, esp. around OverviewSplitSelect" into tm-qpr-dev 2022-09-02 20:46:41 +00:00
Tracy Zhou 902a57c7d9 Merge "Do not change layering for non live tile tasks rendering" into tm-qpr-dev am: 1649163334
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19805291

Change-Id: Ie3c2cf900931e7d70e5260a08b488aacf7a89a90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 20:08:41 +00:00
Tracy Zhou 1649163334 Merge "Do not change layering for non live tile tasks rendering" into tm-qpr-dev 2022-09-02 19:18:22 +00:00
Alex Chau 18d7004c76 Merge "Change wallpaper depth value in AllApps bottomsheet" into tm-qpr-dev am: f28c9f14a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19607219

Change-Id: I25a5f374d8e497cb63837cbaaad5b3c06c6b9fa6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 10:38:25 +00:00
Jerry Chang b3ff2ee352 Support launching a shortcut and a task to split screen am: bf9ce9c096
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19801551

Change-Id: I0eacebd6ffa421f7cb7274d50b6dc1a0f5dd9c7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 10:38:15 +00:00
Alex Chau f28c9f14a4 Merge "Change wallpaper depth value in AllApps bottomsheet" into tm-qpr-dev 2022-09-02 10:06:37 +00:00
Tracy Zhou 668eec1e08 Do not change layering for non live tile tasks rendering
TaskViewSimulator#onBuildTargetParams is called for every single task rendering. Given the layering change doesn't work for the non live tile case (and we shouldn't change the layering in that case anyways), an additional check is added to prevent that from happening

Fixes: 242593058
Test: launch overview from home and app, and make sure that in both cases, task launch animation is intact
Change-Id: Ia242dc767499689547dfa8acae56d39e9b0c3189
2022-09-02 00:43:03 -07:00
Jerry Chang bf9ce9c096 Support launching a shortcut and a task to split screen
Fix: 243101552
Test: long press on a shortcut to enter split screen works
Change-Id: Icaabf2e1c8be086bd1b79e0a2cf05878767caa15
2022-09-02 06:58:08 +00:00
Mateusz Cicheński 094c12fcfc Merge "Replace shelf height with keep clear areas registration in Launcher." into tm-qpr-dev am: f6b782344c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19271435

Change-Id: I95896b43eead78c3669618d3dde44d2944e2c0cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 05:29:23 +00:00
Mateusz Cicheński f6b782344c Merge "Replace shelf height with keep clear areas registration in Launcher." into tm-qpr-dev 2022-09-02 05:19:13 +00:00
Jeremy Sim b33471a21f Fix bug with Launcher animation canceling, esp. around OverviewSplitSelect
This commit fixes a bug where the user could cancel animations when transitioning between Launcher states, potentially resulting in a state where Overview elements (task thumbnails etc.) were wrongly hidden or invisible.

The bug occurred because functions such as createInitialSplitSelectAnimation() and createAtomicAnimation() did not carry out any cleanup upon animation failure. This resulted in RecentsView potentially being in a polluted state for the next launch.

Bug was fixed by adding cleanup routines to two onAnimationEnd listeners.

Fixes: 242715097
Test: Manual
Change-Id: I05415ecf515e247aa535e3ca8371e540c3189b01
2022-09-01 20:51:53 -07:00
Hyunyoung Song 04e4550c3c Merge "Update container for ItemInfo." into tm-qpr-dev am: c9be6ca870
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19683198

Change-Id: Ic75175db0b441047e2831921d8076524d6011139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 00:05:01 +00:00
Hyunyoung Song c9be6ca870 Merge "Update container for ItemInfo." into tm-qpr-dev 2022-09-01 23:38:36 +00:00
Sukesh Ram 82da9fc5be Made getOnBoardingPrefs @Nullable & avoid NPE
Bug: 236679197
Test: Manual
Change-Id: I3cbb0891cbfcf7cab956a4e05a28dbbcc2b33e19
(cherry picked from commit c0650e7725)
2022-09-01 22:20:35 +00:00
Evan Rosky 9d95abe6b0 Merge "Only animate to hotseat when launcher is on home screen" into tm-qpr-dev am: eaaf065b73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19775938

Change-Id: Ibb18c2fc6551a46f892616aebcf3da725ec5fc73
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 21:36:53 +00:00
Evan Rosky eaaf065b73 Merge "Only animate to hotseat when launcher is on home screen" into tm-qpr-dev 2022-09-01 21:11:01 +00:00
Alex Chau 3193522616 Change wallpaper depth value in AllApps bottomsheet
- Cap AllApps wallpaper zoom to workspaceContentScale rather than all the way to max depth (config_wallpaperMaxScale)
- Changed both workspace scale and depth interpolator to correlate with AllApps threshold

Bug: 240580498
Test: manual
Change-Id: I0342a37c72206268dcffc5697a212704a41b020f
2022-09-01 21:26:30 +01:00
Holly Sun 03caf49826 Update container for ItemInfo.
See https://docs.google.com/document/d/1eAxQ9p263FI8-ZdkOsiQoarhpwm9aOdncqfJUD42o1Q/edit?resourcekey=0-GJyyDut-Tfy29akzHyoz0Q for the debugging process.
Test: see video https://drive.google.com/file/d/1qpD7070v0qOaBEuYS0WoZauawyhL54MQ/view
Fix: 234848972

Change-Id: I2ed5d24d11ab2081c6faa5d040d72a9d1646e5ca
2022-09-01 12:10:31 -07:00