Commit Graph
60327 Commits
Author SHA1 Message Date
Jeremy Sim 0525e3a462 Add transitions to DWB banner when app thumbnail progresses from Overview tile to fullscreen
This patch makes it so that the DWB banner transitions out neatly when a user in Overview drags a tile downward to launch the app. Previously, the banner would stick around throughout the transition, creating visual clutter and drawing attention to the corners of the app.

Fixed by creating an exit transition in setFullscreenProgress(), similar to other UI elements like Overview action chips.

There is another outstanding issue where sometimes the transition can get clipped and jump to the final frame. The cause is still unknown, but issue is tracked at b/250976138 for a future fix.

Fixes: 249825524
Test: Manual
Change-Id: Iea47a9bc643537f0b716ce11b104803d9ca25fd2
2022-10-24 10:47:29 -07:00
Sunny Goyal 0cf401d0eb Merge "Revert "Revert "Updating the scroll calculation from recyclerView to avoid view inflation""" into tm-qpr-dev 2022-10-24 17:38:42 +00:00
Mady Mellor f602559b25 Merge "Hide launcher when freeform tasks are visible" into tm-qpr-dev am: b5c2565447
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20017950

Change-Id: I1605450eac52bed58566c55259246009c59b27b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-24 17:21:45 +00:00
Sunny Goyal 8a11443333 Removing unnecessary RemoteAnimationTargetCompat
Merged-In: I12a4c29eaf9bd7d97d3c02074b4cc1ca452fc88a
Bug: 221961069
Test: Presubmit
Change-Id: I12a4c29eaf9bd7d97d3c02074b4cc1ca452fc88a
2022-10-24 17:17:36 +00:00
Sunny Goyal 0d77cd7166 Merge "Removing unnecessary RemoteAnimationTargetCompat" 2022-10-24 17:16:49 +00:00
Schneider Victor-tulias 0130252c00 Remove obsolete cancel recents animation logic
This logic was used as a workaroung for 2-button navigation mode. This mode is now obsolete, however the leftover logic clashes with gesture navigation mode. Removed old logic and unused variables.

Test: manually tapped nav handle, then quickly swipped up
Fixes: 255348258
Change-Id: Ib4e179c0c4d9769acae24f93cfde65d2c7a4dfd9
2022-10-24 10:12:45 -07:00
Mady Mellor b5c2565447 Merge "Hide launcher when freeform tasks are visible" into tm-qpr-dev 2022-10-24 16:04:59 +00:00
wilsonshih 0988afc44e Fixs NPE when start back-to-home animation.
Animation target should get from parameter.

Bug: 238475284
Test: build/flash, monitor launcher won't crash while start
back-to-home animation

Change-Id: I7bd254a436ddcf250d90827b9d81d628bcd4313c
2022-10-24 22:36:23 +08:00
Riddle Hsu 7708b315e1 Merge "Attempt to reduce flakiness of testDisableRotationCheckForPhone" 2022-10-24 01:03:28 +00:00
Android Build Coastguard Worker e4924e59c4 Snap for 9207990 from e3279da4fc to tm-qpr2-release
Change-Id: I10ce138331637f1915c3ee93711c00d576f56b12
2022-10-22 21:34:30 +00:00
Sunny Goyal f34811d3a3 Revert "Revert "Updating the scroll calculation from recyclerView to avoid view inflation""
Test: ABTD
https://android-build.googleplex.com/builds/abtd/run/L52600000956969786

This reverts commit cee6ddf3de.

Reason for revert: Fixed in ag/20239136

Change-Id: I0e8446e66d9a86a94b40fcbd6de14da07abe8e5c
2022-10-22 15:37:47 +00:00
Shan Huang 2b6c7f8b0c Merge "Use spring-y progress in back to home animation." 2022-10-22 13:47:14 +00:00
Tracy Zhou daad3fefea Support swipe gesture on trackpad to swipe up from app
Bug: 254783214
Test: https://recall.googleplex.com/projects/3388b17c-d22f-46f8-b140-a102690377b4/sessions/92d385dd-bad5-49ea-a0b4-b4bf4010aabb
Change-Id: I74ba4a9e5c5096aaf6475f9cb8f1dc30de48024d
2022-10-22 07:18:16 +00:00
Android Build Coastguard Worker 627c5c1131 Snap for 9206145 from ac29981a42 to tm-qpr2-release
Change-Id: I5eb021fd041eb681def09d59569073b350e16041
2022-10-22 01:25:27 +00:00
Shan Huang 0b939876b7 [automerger skipped] Merge "DO NOT MERGE Use spring-y progress in back to home animation." into tm-qpr-dev am: e3279da4fc am: 558fefab03 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic1958d2110bbc221065291d1a2194a474dba98ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 00:44:03 +00:00
Shan Huang d92d3f81ac [automerger skipped] DO NOT MERGE Use spring-y progress in back to home animation. am: f31bf4e1e3 am: deee3c1a46 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Idb90d95c7dfb8a0a4cde2e8ff2a81b1934ac0709
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 00:44:01 +00:00
Shan Huang 558fefab03 Merge "DO NOT MERGE Use spring-y progress in back to home animation." into tm-qpr-dev am: e3279da4fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20123116

Change-Id: If8056db30eff20e3045bcde0d37c6eae13450527
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 00:11:55 +00:00
Shan Huang deee3c1a46 DO NOT MERGE Use spring-y progress in back to home animation. am: f31bf4e1e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20123116

Change-Id: I926c3b4e4f20a740c29337459228859018bc5e1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 00:11:52 +00:00
Becky Qiu 4ed3dfc28a [Toast] Use a BaseSearchConfig for launcher3 to read allapps device config.
Bug: 251387263
Test: local
Change-Id: I92c52caff377e627305bc7999ae0205fe6269968
2022-10-21 17:11:38 -07:00
Shan Huang e3279da4fc Merge "DO NOT MERGE Use spring-y progress in back to home animation." into tm-qpr-dev 2022-10-21 23:54:12 +00:00
Ling Wo 7c35298a40 Merge "Add enable-suggestion option via TestProcotol so that test can opt-in to show live suggestion" into tm-qpr-dev am: ac29981a42 am: 12949e8abb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20158848

Change-Id: I3f79292d7c813808a61ca82ea31121daa5ee3eba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 22:44:45 +00:00
Shan Huang 09465d5070 Use spring-y progress in back to home animation.
Bug: 241788651
Test: m -j. Visual inspection.
Change-Id: Ia003136b17fb8e0a383768ccc3c0fcf4ca4cadeb
2022-10-21 15:40:28 -07:00
Shan Huang f31bf4e1e3 DO NOT MERGE Use spring-y progress in back to home animation.
Bug: 241788651
Test: m -j. Visual inspection.

Change-Id: If2b0218367680853ae4ee89c5ecff224ab9b6f04
2022-10-21 22:14:38 +00:00
Ling Wo 12949e8abb Merge "Add enable-suggestion option via TestProcotol so that test can opt-in to show live suggestion" into tm-qpr-dev am: ac29981a42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20158848

Change-Id: I6cf20bc024261f138bc845e17a40d330f6ecb524
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 21:58:07 +00:00
Ling Wo ac29981a42 Merge "Add enable-suggestion option via TestProcotol so that test can opt-in to show live suggestion" into tm-qpr-dev 2022-10-21 21:44:35 +00:00
Vinit Nayak fef51c7628 Merge "Use updateButtonLayoutSpacing() for all states" into tm-qpr-dev am: cb26c1a245 am: 812bb6604d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20247867

Change-Id: Ib97b1cce072bcd58f32ba18817c498d533d6b57f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 21:31:59 +00:00
Sunny Goyal 64453ae482 Introducing feature flag for optimizing overlay service connection
Bug: 254903450
Test: n/a
Change-Id: I2286be8583cc6dc46921b9ba8ef5505e5b8f0bf8
2022-10-21 14:07:16 -07:00
Vinit Nayak 812bb6604d Merge "Use updateButtonLayoutSpacing() for all states" into tm-qpr-dev am: cb26c1a245
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20247867

Change-Id: Ifbb6aff2ede81eff756128c7b2b35612bee6d86d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 21:00:14 +00:00
Vinit Nayak cb26c1a245 Merge "Use updateButtonLayoutSpacing() for all states" into tm-qpr-dev 2022-10-21 20:32:10 +00:00
Sunny Goyal 2e0bdd4f49 Merge "Optimizing some icon generation code:" into tm-qpr-dev am: 415fe0c183 am: ef188e8c23
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20040405

Change-Id: Ia9595c728b3ab46b8530a689598bb6cc7c433477
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 20:04:34 +00:00
Federico Baron 0abfda8f2f Rename first page pinned widget to mFirstPagePinnedWidget
mQsb is the name used for the first page pinned widget. This variable name is bad since in some launchers the first page pinned widget is a qsb but sometimes it is a smartspace. Renaming the variable to mFirstPagePinnedWidget is a more accurate name for this variable.

Bug: 251259222
Test: N/A
Change-Id: I6d3c74163995d2267510ee546924917062c4955c
2022-10-21 13:01:24 -07:00
Federico Baron a56f08e677 Set smartspace to 30% visibility on workspace edit for home gardening
Here we set the smartspace to have 30% visibility to follow the guidelines set by https://docs.google.com/presentation/d/1FOmmCdmGmSMR77_901IOMbvbPVxPmjaAdxZjy-D9tw0/edit#slide=id.g159289e55db_0_229

Bug: 251259222
Test: Enter drag mode in workspace with SHOW_HOME_GARDENING flag on to see the changes
Change-Id: Ia2ef4f1a49549fef9f8fbea7c007db8b81972f71
2022-10-21 13:00:58 -07:00
Sunny Goyal ef188e8c23 Merge "Optimizing some icon generation code:" into tm-qpr-dev am: 415fe0c183
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20040405

Change-Id: Id325662e61d5cdcc625923536a8458eb44fdd9b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 19:17:35 +00:00
Schneider Victor-tulias ee0bc03d58 Decrease TAPL All Apps scrolling flakiness
scrolling in all apps did not factor in additional top padding in the all apps list recycler. This made it so that apps could occasionally scroll and be obcured by that top padding, making them un-tappable. Added this padding to the scrolling logic to make scrolling less flaky.

Test: TaplTestsTaskbar, TaplTestsLauncher3 and presubmit
Fixes: 248064856
Change-Id: Id76b92b4bc354917f3688ac53673d0ed7a905f02
2022-10-21 12:12:38 -07:00
Sunny Goyal 415fe0c183 Merge "Optimizing some icon generation code:" into tm-qpr-dev 2022-10-21 18:27:54 +00:00
Federico Baron 79cc65d133 Autohide and autoshow pagination in workspace
Added code similar to WorkspacePageIndicator.java in order to autoshow and autohide the pagination in Workspace using PageIndicatorDots.java

Bug: 249773534
Test: Manual
Change-Id: I3b26d929d71510cf2f9d5342ee4c59007b8429cd
2022-10-21 10:55:26 -07:00
Mady Mellor 9a90c2d521 Hide launcher when freeform tasks are visible
This CL introduces a new controller to manage the visibility of the
launcher workspace when desktop mode is active and freeform tasks
are visible.

This controller will be notified when the sysui state flag related
to freeform task visibility is changed.

The controller will modify the workspace visibility as well as
the flags on the activity indicating if it's been paused / resumed
based on freeform tasks being visible or not.

Bug: 245569277
Test: manual -  enable desktop mode and open some freeform tasks
             => observe that the contents of launcher is hidden and
                taskbar shows
             -  remove all of the freeform tasks
             => observe that the contents of launcher reappears along
                with the hotseat.
Change-Id: I378ab97b40cbb954a06f4e2426b195efddad905c
2022-10-21 10:06:54 -07:00
Vinit Nayak 2a2fbfe319 Use updateButtonLayoutSpacing() for all states
* During a merge conflict we prevented
updateButtonLayoutSpacing() from running if device was
in setup mode, however the code that does setup layout
is in there.

Fixes: 254589281
Test: Went through setup, back button shows up
where expected

Change-Id: Ib496bfc0e3ac9023a9fc5071867c3779721ab8ab
2022-10-20 23:11:33 -07:00
Vinit Nayak 61d94834f7 Merge "Improve TaskMenuView layouts for split pairs" into tm-qpr-dev am: b9b7c38d55 am: 05e238ff32
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20169868

Change-Id: I5c1a164b627794f1f25007ce467bd33bcc26c84f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 01:16:27 +00:00
Vinit Nayak 05e238ff32 Merge "Improve TaskMenuView layouts for split pairs" into tm-qpr-dev am: b9b7c38d55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20169868

Change-Id: I2d4308adb3a6396732b663a2f05e9af115318261
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 00:43:22 +00:00
Vinit Nayak b9b7c38d55 Merge "Improve TaskMenuView layouts for split pairs" into tm-qpr-dev 2022-10-21 00:07:53 +00:00
Ats Jenk b5b3b054d1 Clicking on desktop tile brings apps to front
Override launchTasks() method from TaskView to ensure we always call
into WMShell to bring desktop apps to front. And don't run single task
animation logic.

Bug: 254738174
Test: manual, enable shell transitions, click on desktop tile in recents
Change-Id: Ibe85cbe14d3378a89ba7bfd5f394f0c3e44f304d
2022-10-20 17:06:47 -07:00
Brian Isganitis cf6e195a43 [automerger skipped] Merge "Fix crash on long press of prediction row icons" into tm-qpr-dev am: 2bcc3f8599 am: 7ed3c82636 -s ours
am skip reason: Merged-In I9a4679ba82cacb5e2648481274876dbfc95d80ce with SHA-1 c4430c9cd7 is already in history

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

Change-Id: I90172d37a2a7c5deee67302a85592178c7e8ba7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:32:50 +00:00
Treehugger Robot 5f65096bfe Merge "Fix errorprone warnings that should be errors" am: 35157974d4 am: 533b937fd3 am: 14946c1fa3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/2254242

Change-Id: Id765742b2e4767888137a01116f2bad1bba859a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:32:40 +00:00
Brian Isganitis 7ed3c82636 Merge "Fix crash on long press of prediction row icons" into tm-qpr-dev am: 2bcc3f8599
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19930974

Change-Id: Id1010f7f19454d51b19a11b1d5ed72fe39632332
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:31:44 +00:00
Android Build Coastguard Worker 8c9afe54dd Snap for 9200392 from ddbe35cc87 to tm-qpr2-release
Change-Id: I712cbf608d922e5eed50fc81b97ddc22cc743c61
2022-10-20 23:26:10 +00:00
Vinit Nayak eba71a1c8f Merge "Scale screenWidth for split proportionally for thumbnail matrix" into tm-qpr-dev am: e690ef7f80 am: c136a1f837
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20232996

Change-Id: If5447ddb1e7b0c8f2bad456c82a6993e56f97a7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:18:29 +00:00
Treehugger Robot 14946c1fa3 Merge "Fix errorprone warnings that should be errors" am: 35157974d4 am: 533b937fd3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/2254242

Change-Id: I748f2372116aa8bba282a0f1925e3968a9fed0ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:16:08 +00:00
Vinit Nayak c136a1f837 Merge "Scale screenWidth for split proportionally for thumbnail matrix" into tm-qpr-dev am: e690ef7f80
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20232996

Change-Id: Ife8a1a5869452cc869a58b6bac126f74a2afab81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:01:33 +00:00
Sukesh Ram c6d4df87f0 Added Tests for Secondary Display Launcher
These UIAutomator tests for secondary display launcher cover app drawer, drag-n-drop functionality, app predictions, pin/unpinning icons, and correct back press behavior.

We are deviating from  go/modify-tapl due to the time constraints of this project as outlined here (https://docs.google.com/document/d/1wLb2h8qCPGur-VsufCH4mLnnuLDLcmMq0FrCo7ichu8/edit#heading=h.brf6af3bno4g).

A preliminary design document has also been created to reference for future TAPL integration (https://docs.google.com/document/d/1H642SSu5DCM_zSXTsvTWumgm3OHIxsKEXvTlTeC4y54/edit?resourcekey=0-M9sTxdyQBi8bUy5cpjmJNA#heading=h.90f2s4sc5ic9).

Before TAPL integration, we need to follow up on test rewrite to eliminate antipatterns in the following bug: b/242776943.

Bug: 241166788
Test: Run Locally, on presubmit, and on a test on a cuttlefish emulator
Change-Id: I556a47b93a7ea3b2583dbc1efd2de7623d820e2a
Merged-In: I556a47b93a7ea3b2583dbc1efd2de7623d820e2a
2022-10-20 22:58:46 +00:00