Commit Graph

10816 Commits

Author SHA1 Message Date
TreeHugger Robot 9dc7631d7c Merge "Fix overview clear all tasks button text color." into sc-v2-dev am: 766549a4ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16118174

Change-Id: I6f910a269a448713bf8726b975799c68707a6f32
2021-10-26 19:17:19 +00:00
TreeHugger Robot 6130758570 Merge "Fix overview clear all tasks button text color." into sc-v2-dev am: 766549a4ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16118174

Change-Id: Ib5d0e865339ec91c20ccd4d4f4280db9eab30b78
2021-10-26 19:14:47 +00:00
TreeHugger Robot d16a1ec9fb Merge "Make sure distinct widgets items are used when mapping widget component names to widget items." into sc-v2-dev am: 3bd6b8bf81 am: ddefceae62
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16116819

Change-Id: I9633178a5b1404604cae743b05484bbaed3c26fd
2021-10-26 18:45:38 +00:00
TreeHugger Robot 766549a4ca Merge "Fix overview clear all tasks button text color." into sc-v2-dev 2021-10-26 18:37:58 +00:00
TreeHugger Robot 5fb629a179 Merge "Make sure distinct widgets items are used when mapping widget component names to widget items." into sc-v2-dev am: 3bd6b8bf81
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16116819

Change-Id: I344b64d3ab0147ddb3fa12c1e8bf14b1ab2f3a58
2021-10-26 18:27:17 +00:00
Sunny Goyal eed4bbfb49 Using a different transition for All-set activity
Bug: 201797003
Test: Manual
Change-Id: I33b342ca224ab283e2ac475d4defe2eac6a87bb8
2021-10-26 11:25:32 -07:00
TreeHugger Robot ddefceae62 Merge "Make sure distinct widgets items are used when mapping widget component names to widget items." into sc-v2-dev am: 3bd6b8bf81
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16116819

Change-Id: I456cdc5445b344d7cce23e8cea49ca22cebdcd8f
2021-10-26 18:24:47 +00:00
Vinit Nayak 3e9bd87ca9 Prevent launching app in split if task split is unsupported
Bug: 204026157
Change-Id: Ie13ac74e0c1d357db242d49083be97f0f45e6ca5
2021-10-26 11:10:23 -07:00
TreeHugger Robot 3bd6b8bf81 Merge "Make sure distinct widgets items are used when mapping widget component names to widget items." into sc-v2-dev 2021-10-26 18:01:48 +00:00
Vadim Tryshev 12609edb72 Revert "Temporarily disable Launcher3 tests affected by fling changes"
This reverts commit bc4dc49c6c.

Reason for revert: RecyclerView bug is fixed

Change-Id: Ia2a677f3a3987751349bad951ff136b2d55f439f
Test: presubmit
Bug: 197802324
(cherry picked from commit 8b4a6ee65b)
2021-10-26 17:47:05 +00:00
Pat Manning 1b5975c205 Fix scroll task off screen to support different screen dimensions.
This will fix the breaks on cuttlefish as seen in b/203781041.

Test: TaplTestsQuickstep.java
Bug: 197630182
Change-Id: I3b582a9df1790543c4e1521b45494fb462bb5c1c
2021-10-26 18:08:45 +01:00
Pablo Gamito 77d3cab287 Set custom task transition spec when taskbar is visible
This is to ensure that the task to task animations look good when the
taskbar is visible (the transition background is the same as the taskbar
color, the taskbar overlay rounded corners are hidden, and the task
animates above the taskbar so it's rounded corners are visible during
the animation and not hidden behind the taskbar).

Test: Open tasks from other tasks to trigger task to task animations and
see if they look good
Bug: 200675009
Bug: 196387647

Change-Id: I8e46718829c0e6541a5c1b1a3a156285aeecd30a
2021-10-26 14:56:27 +02:00
Alina Zaidi 987221a1cc Send widget added and removed events to AiAi.
-Pass the widgets on workspace as an extra List<AppTargetEvents> while
 creating prediction session.
-Notify the session about widget added/removed events after creation.

Bug: 186648032
Test: Manually checked events are received
Change-Id: I4de6c011a1e24c129a3e995ddba16bfc55074939
2021-10-26 12:29:48 +01:00
Tony Wickham 5a2f61da23 Merge "Hide taskbar background when notification shade is expanded" into sc-v2-dev am: add188f339 am: d6123537c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102657

Change-Id: I68306fb21825ab94cd8aa46b35ffb0e49bc5a6ac
2021-10-26 03:21:00 +00:00
Tony Wickham a222a0d6d9 Merge "Hide taskbar background when notification shade is expanded" into sc-v2-dev am: add188f339
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102657

Change-Id: I447aca295140455bdba48508baef922bda287721
2021-10-26 03:10:09 +00:00
Tony Wickham d6123537c5 Merge "Hide taskbar background when notification shade is expanded" into sc-v2-dev am: add188f339
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102657

Change-Id: I6b49aa2008b6cebe4e66ef9a0036863ae47cbbfa
2021-10-26 03:09:37 +00:00
Tony Wickham add188f339 Merge "Hide taskbar background when notification shade is expanded" into sc-v2-dev 2021-10-26 02:56:47 +00:00
TreeHugger Robot 17f5239620 Merge "Fix launching window bounds for immersive apps" into sc-v2-dev am: c6649763a7 am: d9a4c9b03f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16049085

Change-Id: Ia29cf8a50e9152dbef024b307cb0c2ee5fe0579b
2021-10-25 23:54:42 +00:00
Schneider Victor-tulias 1bda3e7424 Fix overview clear all tasks button text color.
Test: checked button on dark/light mode on a wallpaper similar to bug
Fixes: 203198804
Change-Id: I03e663422d2cdba63f3c5953741b5c0bd722fccf
2021-10-25 16:49:36 -07:00
TreeHugger Robot 2aa0bc0f5d Merge "Fix launching window bounds for immersive apps" into sc-v2-dev am: c6649763a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16049085

Change-Id: I4fbff919b24a13ad948e2d03feff0562c2572db7
2021-10-25 23:39:34 +00:00
TreeHugger Robot d9a4c9b03f Merge "Fix launching window bounds for immersive apps" into sc-v2-dev am: c6649763a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16049085

Change-Id: If1a2ff2d40d937ca1813522b544bd3572742b341
2021-10-25 23:38:21 +00:00
TreeHugger Robot c6649763a7 Merge "Fix launching window bounds for immersive apps" into sc-v2-dev 2021-10-25 23:20:47 +00:00
Tony Wickham 232e9a4631 Hide taskbar background when notification shade is expanded
- In 3 button mode, don't hide the background but do ensure nav buttons are translated down when swiping to notificaitons from the home screen

Test: swipe down notifications, background hides in 0 button mode but not in 3 button mode
Fixes: 199163951
Change-Id: Ic70adc7d67b2ab7c92a2d5d846b9b259d1bd7bfc
2021-10-25 13:44:09 -07:00
Alex Chau 948d9fb223 Fix TaskView jumping caused by split select am: 39da1f78da am: 6b465023e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16095449

Change-Id: I2c0075c9228de998f8bd97492924663a5c662649
2021-10-25 18:03:00 +00:00
Alex Chau 062e5650fb Fix TaskView jumping caused by split select am: 39da1f78da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16095449

Change-Id: Iae8916945942185f8669520e4634c351c8d9405d
2021-10-25 17:50:00 +00:00
Alex Chau 6b465023e0 Fix TaskView jumping caused by split select am: 39da1f78da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16095449

Change-Id: I26f0067df68088d9aba94ce8f83aa28d0882a468
2021-10-25 17:48:45 +00:00
Alina Zaidi fa37c6742e Make sure distinct widgets items are used when mapping widget component
names to widget items.

This is to prevent a crash on duplicate key when creating map.

Bug: 204065759
Test: Enabled flag and got no crash
Change-Id: Ice9f93af76c02eeba53c934687358ed806c60b60
2021-10-25 16:10:45 +01:00
Alex Chau 39da1f78da Fix TaskView jumping caused by split select
- Never apply split select translation to grid overview, instead use dismiss translation to make space to split placeholder to minimize motion and avoid janky double movement
- Ensures snapping to last task for end of grid split cases
- Adjust mCurrentPageScrollDiff due to coordinate shift
- Use longGridRowWidthDiff to shift all task to make space for split placeholder
- Also fixed a bug that split translation isn't reset if entering overview immediately after exit

Bug: 200537815
Test: manual
Change-Id: Ie1b57c34ce4bb079f898ba5b7c3464a714021847
2021-10-25 15:38:34 +01:00
Bill Lin 2745327c5e 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
2021-10-25 06:47:13 +00:00
Alex Chau 309e21844b Add back @Ignore for testOverviewForTablet
The @Igonore is latest lost due to auto-merger.

Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: Ifb9fa9ef74f9da4ac0630338c1fe374280102c94
2021-10-22 09:44:52 +00:00
TreeHugger Robot a1fc0d9699 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-10-22 05:17:58 +00:00
TreeHugger Robot 92203abe18 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-22 00:52:12 +00:00
Alex Chau f148cd53c7 Ignore testOverviewForTablet until root cause of cuttlefish failure is found. am: 385a6b9caa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102445

Change-Id: Ibff55762ec82ad6a9737e89b6e7f71d7263badd1
2021-10-21 22:31:11 +00:00
Alex Chau 385a6b9caa Ignore testOverviewForTablet until root cause of cuttlefish failure is found.
Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: I9b6f658ab8f55beafaf784d7a374e2780a591089
Merged-In: I9b6f658ab8f55beafaf784d7a374e2780a591089
2021-10-21 21:30:23 +00:00
Alex Chau a901a1b352 Merge "Ignore testOverviewForTablet until root cause of cuttlefish failure is found." 2021-10-21 21:28:08 +00:00
Alex Chau ae3482748f Ignore testOverviewForTablet until root cause of cuttlefish failure is found.
Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: I9b6f658ab8f55beafaf784d7a374e2780a591089
2021-10-21 22:22:22 +01:00
Makoto Onuki 61cb6899e5 Merge "Revert "Ignore testOverviewForTablet until root cause of cuttlefish failure is found."" into sc-v2-dev am: 1b5e2679a4 am: 92eef8561f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102337

Change-Id: I01e0c633791eac71c2a4bf4a9b5d0b83dcc5b497
2021-10-21 21:14:21 +00:00
Makoto Onuki 92eef8561f Merge "Revert "Ignore testOverviewForTablet until root cause of cuttlefish failure is found."" into sc-v2-dev am: 1b5e2679a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16102337

Change-Id: I467315c297aa164dc5f34a6bae87e82ee2509e93
2021-10-21 21:02:39 +00:00
Makoto Onuki 1b5e2679a4 Merge "Revert "Ignore testOverviewForTablet until root cause of cuttlefish failure is found."" into sc-v2-dev 2021-10-21 20:49:20 +00:00
Makoto Onuki da65dc3dd3 Revert "Ignore testOverviewForTablet until root cause of cuttlefish failure is found."
This reverts commit 8893098446.

Reason for revert: b/203806263

Change-Id: I5e1644e0163ef07d0bec4a70b9dea799ab69f1b5
2021-10-21 20:48:01 +00:00
TreeHugger Robot 24191683bb Merge changes Id9fdcd71,Ic4d69d73 into sc-v2-dev am: b4ce5c1b36 am: 9b884ee9b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16092005

Change-Id: I4d9bdd14b8f30a3b869d6b07b8e44d776ccb67f0
2021-10-21 20:28:53 +00:00
TreeHugger Robot 9b884ee9b9 Merge changes Id9fdcd71,Ic4d69d73 into sc-v2-dev am: b4ce5c1b36
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16092005

Change-Id: I4590c92f09e61e1cd4a8d199e15b5fdc580668f9
2021-10-21 20:09:39 +00:00
TreeHugger Robot b4ce5c1b36 Merge changes Id9fdcd71,Ic4d69d73 into sc-v2-dev
* changes:
  Stash taskbar in fallback recents
  Add FallbackTaskbarUIController
2021-10-21 19:56:38 +00:00
TreeHugger Robot ebaed15ea9 Merge "Ignore testOverviewForTablet until root cause of cuttlefish failure is found." into sc-v2-dev am: 7ca12edf54 am: 74149e40a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101509

Change-Id: I52547514c869f72e64428ea5df516e7577aa3bc3
2021-10-21 19:30:11 +00:00
TreeHugger Robot 74149e40a4 Merge "Ignore testOverviewForTablet until root cause of cuttlefish failure is found." into sc-v2-dev am: 7ca12edf54
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101509

Change-Id: I2db2e1525ffeb97f2ba65b4b33f5284440a4664d
2021-10-21 19:17:55 +00:00
TreeHugger Robot 7ca12edf54 Merge "Ignore testOverviewForTablet until root cause of cuttlefish failure is found." into sc-v2-dev 2021-10-21 18:53:31 +00:00
Tony Wickham 3f6e3f0650 Stash taskbar in fallback recents
Test: Swipe to Overview with 3P launcher as default, watch taskbar stash
Fixes: 188790554
Change-Id: Id9fdcd715fc50872e3a96f102053a9a99859b482
2021-10-21 10:53:48 -07:00
Tony Wickham 8791e7de11 Add FallbackTaskbarUIController
- Refactor TaskbarManager to accept StatefulActivity instead of BaseQuickstepLauncher
- Update the new StatefulActivity in onOverviewTargetChange()
- Cleanup LauncherTaskbarUIController a bit to avoid initializing TaskbarActivityContext, TaskbarDragLayer, and TaskbarViewController in the constructor, and instead get these from mControllers after init()

Test: No change in behavior
Bug: 188790554
Change-Id: Ic4d69d73deb6dada416876eb265db57803c3adfd
2021-10-21 10:53:46 -07:00
Pat Manning 8893098446 Ignore testOverviewForTablet until root cause of cuttlefish failure is found.
Test: TaplTestQuickstep.java
Bug: 203781041
Change-Id: Iffd7031f303822fe77c02052eb07499e8644243b
2021-10-21 18:09:15 +01:00
TreeHugger Robot e864cb28d1 Merge "Update TaskView corner radius as RecentsView scale changes" into sc-v2-dev am: d238074c39 am: a41dbd3204
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16101499

Change-Id: Ia3e15aab8905ec0d05284b4de072ee00f95f18da
2021-10-21 15:40:01 +00:00