Commit Graph

5786 Commits

Author SHA1 Message Date
Vinit Nayak f89c12fa27 Merge "Align OverviewActionsView for 3 button taskbar" into sc-v2-dev am: ac24e7f6f0 am: 8f4bcaf01f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16094825

Change-Id: I14c54f0b259ab5694c3830de3f6e77e2819dac34
2021-11-02 06:04:12 +00:00
Vinit Nayak 8d3ba33614 Merge "Check if RemoteAnimationTargets apps are present" into sc-v2-dev am: a216ad2c36 am: b8183b8bf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16142291

Change-Id: I5fe155589024eb622b29ed87f68afbca1f6b78b5
2021-11-02 06:03:57 +00:00
Vinit Nayak ac24e7f6f0 Merge "Align OverviewActionsView for 3 button taskbar" into sc-v2-dev 2021-11-02 05:37:45 +00:00
Vinit Nayak a216ad2c36 Merge "Check if RemoteAnimationTargets apps are present" into sc-v2-dev 2021-11-02 05:37:13 +00:00
Bill Lin 2b74e3c290 Allow One-handed gesture when densityDpi > 600
This logic was aim to prevent tablet device enable One-handed gesture
so added displayInfo.densityDpi < DisplayMetrics.DENSITY_600 before.

However, it seems this densityDpi=600 does not able to represent to
tablet device, instead we already have system property
"ro.support_one_handed_mode" which provides feasibility to config false
on tablet project, as the reason we can safe to remove this condition.

Bug: 203936659
Test: adb shell wm density 600 , and observe OHM gesture is available
Test: atest WMShellUnitTests
Change-Id: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
Merged-In: Ic7ae10e8a47d26b9bb39ab80e22d591d74f89ae5
2021-11-02 02:50:09 +00:00
Vinit Nayak 97d64ea8a1 Align OverviewActionsView for 3 button taskbar
Bug: 189807374
Change-Id: I028ae31b98e28bc372f0148a28755d067fe50678
2021-11-02 01:13:02 +00:00
Schneider Victor-tulias 724b7c5c30 Fix lost gesture nav progress on screen rotation.
Rotating the device during the gesture nav tutorial cases the current step to repeat. This is unecessary after a successful gesture. Added some state tracking and handling

Test: roating the device several times while doing the tutorial and after successful gestures.
Bug: 204407899
Change-Id: I2f4102edc187137309f6231b88074f5db82ea0cd
2021-11-01 14:58:43 -07:00
TreeHugger Robot 9008744ae9 Merge "Do not use shared lib resources" into sc-v2-dev am: 651b93bb53 am: 1ba47a8fd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16166672

Change-Id: I1c0f92f939672ea8757235d465f408d2ef32d8e5
2021-11-01 21:10:19 +00:00
TreeHugger Robot 651b93bb53 Merge "Do not use shared lib resources" into sc-v2-dev 2021-11-01 20:40:43 +00:00
Tony Wickham aef3645bec Merge "Reapply TaskViewSimulator in onApplyWindowInsets()" into sc-v2-dev am: c29f5441da am: af0b447e29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16143050

Change-Id: I4b202a89409cee0136e2248fe3e8cb7584a34114
2021-11-01 20:29:09 +00:00
Tony Wickham c29f5441da Merge "Reapply TaskViewSimulator in onApplyWindowInsets()" into sc-v2-dev 2021-11-01 20:17:53 +00:00
Jonathan Miranda 610f4fd798 Merge "Remove PROTOTYPE_APP_CLOSE feature flag and associated code." into sc-v2-dev am: 9b85616119 am: 470c4ffe3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16151440

Change-Id: I4cf8275faf7a55e3b24aa24175599d32b5bd2098
2021-11-01 19:20:12 +00:00
Jonathan Miranda 9b85616119 Merge "Remove PROTOTYPE_APP_CLOSE feature flag and associated code." into sc-v2-dev 2021-11-01 18:35:44 +00:00
Vinit Nayak b689fbcf07 Merge "Clean up RemoteTargetHandles when RecentsAnimation ends" into sc-v2-dev am: 6e5f4e3184 am: 2256ab7ad9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16142695

Change-Id: Ib83a003dc10f4afe7b7919f8f37f3e07bc7aabb2
2021-11-01 18:27:06 +00:00
Vinit Nayak 6e5f4e3184 Merge "Clean up RemoteTargetHandles when RecentsAnimation ends" into sc-v2-dev 2021-11-01 18:01:37 +00:00
Tony Wickham 49ea8680a8 Merge "Add null check when settling on LAST_TASK" into sc-v2-dev am: d48fbecd1a am: e62cedb2ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16150962

Change-Id: Ib0abf89969298e56bcc19800a72000b8ca708a04
2021-11-01 16:56:28 +00:00
Thales Lima 9e6b691e99 Merge "add kotlin support for launcher" into sc-v2-dev am: 33f9de0225 am: 997bee0c73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101503

Change-Id: I6692c0f54d5ba676b84638f9914c15ba81cdaef5
2021-11-01 16:56:10 +00:00
Tony Wickham d48fbecd1a Merge "Add null check when settling on LAST_TASK" into sc-v2-dev 2021-11-01 16:22:15 +00:00
Thales Lima 33f9de0225 Merge "add kotlin support for launcher" into sc-v2-dev 2021-11-01 16:03:58 +00:00
Nick Chameyev 5f11bf60a8 Do not use shared lib resources
Temporary removes usages of SysUI shared
resources as it leads to crashes in Launcher
tests.

Bug: 204727471
Test: install launcher, try autorotate suggestion
Change-Id: I1e3c1f5b331a22a753acc3fe0ee544d50fba5c18
2021-11-01 15:49:54 +00:00
Nick Chameyev 0288d2e8bb Move floating rotation button handling to Launcher
Moves handling of floating rotation button when navigation
bar is not created to the launcher. This button was not
showing when taskbar is visible as it was initialized in
navigation bar (which is not created for large screens).

Bug: 200103245
Test: rotate phone when autorotate disabled on inner screen
Test: showing rotate suggestion when gesture nav enabled/disabled
Change-Id: I13dd555bcd811f1524be7ab9ad51b2b012b3b749
2021-11-01 10:36:34 +00:00
Jon Miranda 029a644a6e Remove PROTOTYPE_APP_CLOSE feature flag and associated code.
Flag was never enabled, safe to remove.

Bug: 200999899
Test: manual
Change-Id: Ie2646d8c4b9a1c40fac1bfd7dadf4ec714171aec
2021-10-29 16:07:29 -07:00
Tony Wickham 2ca7e2695c Add null check when settling on LAST_TASK
Test: N/A
Fixes: 203237855
Change-Id: I511fde0ba3f22720ed1fe29769c97a3207a98a4b
2021-10-29 14:15:53 -07:00
Vinit Nayak 0ca3f98ec6 Invoke IME switcher for taskbar through SysUI
Bug: 191814219
Test: IME switcher works small and large screen
Change-Id: Ic2db60357a13846bb34dddd64b27ecbbf8ff656f
2021-10-29 11:46:18 -07:00
Tony Wickham 30f8e7f45f Merge "Recreate taskbar when dark mode changes" into sc-v2-dev am: d71a4288cf am: 446dfa8b11
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16144065

Change-Id: Iff95244b9cc0b75ee4e1ea4e88031d3057b5a025
2021-10-29 18:10:53 +00:00
Thales Lima 26f44911a6 add kotlin support for launcher
Bug: 193432925
Test: click on the app icon and check logcat
Change-Id: I2ca4d57105fe4e1b1dfc6c968a7c1bbd3cbd2151
2021-10-29 15:40:41 +00:00
Nick Chameyev 5c446d9ed4 Move floating rotation button handling to Launcher
Moves handling of floating rotation button when navigation
bar is not created to the launcher. This button was not
showing when taskbar is visible as it was initialized in
navigation bar (which is not created for large screens).

Bug: 200103245
Test: rotate phone when autorotate disabled on inner screen
Test: showing rotate suggestion when gesture nav enabled/disabled
Change-Id: I13dd555bcd811f1524be7ab9ad51b2b012b3b749
2021-10-29 10:17:18 +00:00
Tony Wickham 5a5a926945 Recreate taskbar when dark mode changes
Also dispatch sysui flags to all controllers upon recreate, not just NavbarButtonsViewController. Additionally, tell the controllers to skip the animation due to the flag changes if it's fromInit.

Test: Enable themed icons, switch dark theme in quick settings, ensure taskbar updates
Fixes: 204403933
Change-Id: Ic43a50cf0456175f9beba5c29360440f051cbd2d
2021-10-28 17:49:03 -07:00
Tony Wickham 481a988409 Merge "Fix NPE when TaskView isn't attached to RecentsView" into sc-v2-dev am: 00841576d4 am: e984618610
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16143390

Change-Id: I90e5f55362bf4e404f7919792cb5ac0a5ea158d3
2021-10-28 23:11:39 +00:00
Tony Wickham 00841576d4 Merge "Fix NPE when TaskView isn't attached to RecentsView" into sc-v2-dev 2021-10-28 22:40:01 +00:00
TreeHugger Robot 5f91e8b617 Merge "Update taskbar drag and drop treatment" into sc-v2-dev am: da86c0e64d am: ccb17341b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16134100

Change-Id: I78de1b27ca39cc050b7dd9884e5312e7f12cbbc5
2021-10-28 21:24:28 +00:00
TreeHugger Robot da86c0e64d Merge "Update taskbar drag and drop treatment" into sc-v2-dev 2021-10-28 20:54:09 +00:00
Tony Wickham 956ce16f51 Fix NPE when TaskView isn't attached to RecentsView
Test: theoretical
Fixes: 201481275
Change-Id: Ie10b5ebac373e41a4d4113ee3cda737d88adad8a
2021-10-28 13:21:15 -07:00
TreeHugger Robot 92a6bccb4c Merge "Make gesture nav tutorial skip button always visible." into sc-v2-dev am: d84aaad11f am: 3a5e6199eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15960473

Change-Id: I726e64a65f5c2fc8fae38c6e6825314c76bce813
2021-10-28 20:11:36 +00:00
bquezada cd996616b7 Change AppTargetId for launcher events to align with other AppTargetId's. am: e12b321d5f am: c9845ed750
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16141869

Change-Id: I8bff854eff8570a0011586bb0a7ffdc65dc5e290
2021-10-28 20:11:28 +00:00
TreeHugger Robot d84aaad11f Merge "Make gesture nav tutorial skip button always visible." into sc-v2-dev 2021-10-28 19:51:05 +00:00
Tony Wickham 3c848b0dee Reapply TaskViewSimulator in onApplyWindowInsets()
Test: Long press on bottom of taskbar to stash without moving my finger, ensure underlying app draws all the way behind the stashed handle
Fixes: 204165836
Change-Id: Ia1e138b9c369ac789e862ba760068f90bd64d312
2021-10-28 12:50:58 -07:00
Vinit Nayak 0c05634a16 Clean up RemoteTargetHandles when RecentsAnimation ends
* When in SplitScreen in overview, rotation causes
surfaces to get released, so we tell RecentsView
to null out references to them.
* Unclear why this wasn't/isn't neceessary for a
single, fullscreen task.

Fixes: 202780874
Test: Can rotate in split screen, no crash
Change-Id: Ifdfa74943945029edec37dfeeb4187616e4a23d8
2021-10-28 12:21:46 -07:00
Tony Wickham 89ef745d1c Update taskbar drag and drop treatment
- Disable the FastBitmapDrawable icon instead of setting it to invisible
- Suspend auto hide during drag and drop (moved to new TaskbarAutoHideSuspendController)

Test: Drag and drop from taskbar and ensure the original icon stays in place but desaturated
Test: Open immersive app, drag and drop from taskbar and ensure taskbar doesn't hide before drop
Fixes: 200816442
Change-Id: I4b895efd043be75e7e7034bd75e751ffdd2cfdd7
2021-10-28 11:43:49 -07:00
Vinit Nayak 5e27c021ac Check if RemoteAnimationTargets apps are present
* Before the refactor to use RemoteTargetGluer,
we only set the preview if the runningTaskTarget wasn't
null, that check got removed during the refactor.
* Why that check was there to begin with is a bit
of a mystery, sadly

Fixes: 199658495
Change-Id: I053fac0fa0eee0979dff651c01287d04d06298e6
2021-10-28 11:41:43 -07:00
bquezada e12b321d5f Change AppTargetId for launcher events to align with other AppTargetId's.
Bug: 202535375
Test: Manual
Change-Id: I0c28f7f64935fdaf08edb7781e4e7378a068e8e6
2021-10-28 17:52:02 +00:00
Alina Zaidi 3623756dcd Merge "Send widget added and removed events to AiAi." into sc-v2-dev am: 29c3f23be5 am: 5c09d7e4cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16006577

Change-Id: I68a7562ec2dd9ee355dcf5dda10e6481092024df
2021-10-28 17:00:29 +00:00
Alina Zaidi 29c3f23be5 Merge "Send widget added and removed events to AiAi." into sc-v2-dev 2021-10-28 16:45:22 +00:00
TreeHugger Robot 6fef5f8579 Merge "Prevent launching app in split if task split is unsupported" into sc-v2-dev am: ce597d786f am: 9531506a3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16124504

Change-Id: I08a3f1b2aa478bf1439c67e011f59ac9492517e8
2021-10-28 11:41:25 +00:00
TreeHugger Robot ce597d786f Merge "Prevent launching app in split if task split is unsupported" into sc-v2-dev 2021-10-28 11:19:39 +00:00
Bill Lin 5e203171b9 Merge "Allow One-handed gesture when densityDpi > 600" into sc-v2-dev am: 497d08aa01 am: e3cb7533b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16113733

Change-Id: Iad355a2f94720775ef2b7b5e1542dfa32376ddbc
2021-10-28 03:01:24 +00:00
Bill Lin 497d08aa01 Merge "Allow One-handed gesture when densityDpi > 600" into sc-v2-dev 2021-10-28 02:20:24 +00:00
Tony Wickham 4f91ae9b2b Merge "Fix testStressSwipeToOverview" into sc-v2-dev am: c1cdadf6ea am: 46575af511
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16132969

Change-Id: I3385c009f05ce96990302e7186735ab75e635b56
2021-10-27 22:02:29 +00:00
Schneider Victor-tulias 66b2aa07fd Update the hotseat edu layout for foldable devices. am: 9188b6b993 am: 494de979db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16125840

Change-Id: I3c022d1727679b23d80eb5e158b65b0d900538fe
2021-10-27 22:02:21 +00:00
Tony Wickham c1cdadf6ea Merge "Fix testStressSwipeToOverview" into sc-v2-dev 2021-10-27 21:39:45 +00:00