Commit Graph

9654 Commits

Author SHA1 Message Date
Tony Wickham 5fa2ed27bf Update taskbar resume alignment anim if launcher state changes in the middle
One way to reproduce this issue is to run `adb shell input keyevent KEYCODE_HOME`, which happens to pause and immediately resume launcher. For example, let's say we run this while in All Apps. Because the isResumed=true comes before the state transition to Normal, we behave as if we are still going to All Apps, specifically goingToUnstashedState = false (since we stash in All Apps). To fix this, we now listen to state changes while the resume alignment animation is playing, and update it if necessary.

Also did the same correction for the gesture alignment animation, though I don't have a specific repo for that.

Finally, because there are now more triggers for alignment animations to play, we add a check to only play them if it's not animating to the same value it's already animating towards. One notable experience this improves is swiping down from All Apps to home; if you do it quick enough, the state animation ends before the taskbar unstash animation, and thus the unstash animation would cancel and start again with the full duration, making it look laggy/disjointed (this behavior existed before this change as well).

Test: TaplTestsQuickstep
Test: Go to All Apps, run `adb shell input keyevent KEYCODE_HOME`, open an app and ensure taskbar icons are visible
Test: Quick switch from home when taskbar is present in apps, but instead go to overview; ensure no jump when taskbar stashes
Test: Swipe down quickly from All Apps, ensure taskbar unstashing doesn't slow down when reaching the end of the state transition
Fixes: 214562370
Change-Id: Ie0c6140e14186e41c7e4748dc745f87349b084fe
2022-01-19 16:39:34 +00:00
TreeHugger Robot 56c600afe6 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-15 19:46:33 +00:00
TreeHugger Robot f2172eba8c Merge "Make Taskbar focusable when a popup is open." 2022-01-15 00:00:55 +00:00
Schneider Victor-tulias 291d88460b Make Taskbar focusable when a popup is open.
- Added ArrowPopup#OnPopupClosedCallback to automatically remove Taskbar focus when the popup closes.

Fixes: 209917078
Test: opened popup in taskbar and closed it with switch access, touching anywhere on the screen and using the back gesture. went home to check if focus was removed.
Change-Id: Ie7aafc9cf0f03fadaa44e77818508e9e1d8db610
2022-01-14 12:52:53 -08:00
Tony Wickham 7b40594bc7 Merge changes I36f6cfb8,I7c784765
* changes:
  Create new window for Taskbar Nav Buttons when taskbar is focusable
  Make taskbar focusable when folder is open to get IME input
2022-01-14 17:12:08 +00:00
Bill Yi cb1dd97416 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2252fe53756b7b7369e30ec7107a18911ea6f4d2
2022-01-14 11:14:52 +00:00
TreeHugger Robot 1b6d46f880 Merge "Remving SurfaceControlCompat" 2022-01-14 07:04:53 +00:00
Lucas Dupin 470c987e2e Merge "Directly assign mDepth" into sc-v2-dev am: c518932f74 am: 7b71c2ee59
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16622831

Change-Id: I4686c845583d85ff58899869ac18a9d87762c537
2022-01-13 23:54:15 +00:00
Lucas Dupin 7b71c2ee59 Merge "Directly assign mDepth" into sc-v2-dev am: c518932f74
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16622831

Change-Id: I834c566de468c086c6f27aa8e71cbcdfd996f27d
2022-01-13 23:37:21 +00:00
Lucas Dupin c518932f74 Merge "Directly assign mDepth" into sc-v2-dev 2022-01-13 23:19:20 +00:00
TreeHugger Robot 05de8c874f Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev am: c0a6d3fc8f am: e81cab2fa4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16346766

Change-Id: I03d32f4df17adc36982ad03896583ede306934d3
2022-01-13 21:06:28 +00:00
TreeHugger Robot e81cab2fa4 Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev am: c0a6d3fc8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16346766

Change-Id: I96ae73987e33c706f408d443559836a8d5024e37
2022-01-13 20:49:42 +00:00
TreeHugger Robot c0a6d3fc8f Merge "TalkBack doesn't announce when a task has being closed." into sc-v2-dev 2022-01-13 20:36:44 +00:00
Lucas Dupin 03064a1e60 Directly assign mDepth
A request to set a new depth is ignored if the surface is currently
invalid. We should cache what was the requested value, so it will be
applied once the surface is valid again.

Test: manual
Fixes: 209028986
Change-Id: I812816da4b0139c7ea7b53a9fb00f11265ecdea8
2022-01-13 12:01:11 -08:00
Vadim Tryshev d55a139843 Merge "Removing 2-button support from tests" 2022-01-13 17:59:57 +00:00
TreeHugger Robot b92b229a80 Merge "Launch activity if click on a TaskView which has the task running on different display wit root." 2022-01-13 06:07:15 +00:00
Winson Chung 30fc033b0c Merge "Revert "Add logs for null task list"" into sc-v2-dev am: b92c4e2319 am: daaebc8959
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16615289

Change-Id: Ic3c9e5aae3bd858a4471de6a3be5027fc844f5a8
2022-01-12 23:27:41 +00:00
Winson Chung daaebc8959 Merge "Revert "Add logs for null task list"" into sc-v2-dev am: b92c4e2319
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16615289

Change-Id: I981d23be42c55bbf276b66903d754b178c9e5d27
2022-01-12 23:14:41 +00:00
Winson Chung b92c4e2319 Merge "Revert "Add logs for null task list"" into sc-v2-dev 2022-01-12 23:00:00 +00:00
Tony Wickham 66971f87e1 Create new window for Taskbar Nav Buttons when taskbar is focusable
Test: Open folder from taskbar, edit name, ensure back button displays above IME and that IME sends input to the taskbar folder name
Bug: 205803170
Change-Id: I36f6cfb835aa7da280f15ea4b0aed8923ce8a012
2022-01-12 14:22:47 -08:00
Tony Wickham c07fb08a1e Make taskbar focusable when folder is open to get IME input
- Remove ActivityContext#supportsIme(), as it's always true now
- Add OnFolderStateChangedListener, which we register when clicking on a taskbar folder icon to set the window focusable/not.
- Also remove Folder.STATE_NONE and instead default to STATE_CLOSED (renamed from STATE_SMALL).

TODO: make sure back button is visible above IME (followup CL)

Test: Open a folder from taskbar while in an app, no animation jump and can change folder name
Bug: 180051157
Change-Id: I7c7847657d462c16677d66b9ffa8b6fe5f164084
2022-01-12 14:22:31 -08:00
vadimt 1ac72db930 Removing 2-button support from tests
Bug: 187761685
Test: presubmit
Change-Id: I932dd8cbc7524732e3ff83a35d7034b3e5ff75d9
2022-01-12 10:37:50 -08:00
Jerry Chang 5360c00c85 Merge "Fix NPE when consuming snapshots for recent animation" into sc-v2-dev am: f6086e74e3 am: 0e22f9947b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16598402

Change-Id: I7cd1665d8bc22aecfa9feb39261087656be7facf
2022-01-12 01:58:10 +00:00
Jerry Chang 0e22f9947b Merge "Fix NPE when consuming snapshots for recent animation" into sc-v2-dev am: f6086e74e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16598402

Change-Id: I9d66b3cb98ba5540e417c2acc7084d4edaa62e9f
2022-01-12 01:41:13 +00:00
Jerry Chang f6086e74e3 Merge "Fix NPE when consuming snapshots for recent animation" into sc-v2-dev 2022-01-12 01:21:14 +00:00
Winson Chung 08126d915c Revert "Add logs for null task list"
This reverts commit a46d36240b.

Reason for revert: Reverting logs for release

Change-Id: I65ae1ea691d5fb3d70a2db4beba08d7460b99e2b
2022-01-11 20:06:16 +00:00
Vinit Nayak 73d6b4c99e Remove code that assumes single GroupedTaskView am: 2c97c4ab19 am: b0786109bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16603208

Change-Id: I690c2f7740c94df5ae2b4ccf75e5a9c8ee8ffc37
2022-01-11 03:14:59 +00:00
Vinit Nayak b0786109bd Remove code that assumes single GroupedTaskView am: 2c97c4ab19
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16603208

Change-Id: Ibe46da27964fb09aab5815ab871edd544b7410c3
2022-01-11 02:52:12 +00:00
Vinit Nayak 2c97c4ab19 Remove code that assumes single GroupedTaskView
* Old code assumes there will only be a single
GroupedTaskView, removing those code paths helps
consolidate single and grouped task code flows
* Correctly check when we need to add a stub
taskView for GroupedTaskViews by checking each
individual taskId

Test: Swiping with multiple split pairs doesn't
cause a cycle
Fixes: 213355942

Change-Id: Ibb98ae0dfcd4f52b762685aec9d2ee6445b9ef54
2022-01-10 15:59:33 -08:00
Sunny Goyal 26a1a46b4d Remving SurfaceControlCompat
Bug: 213421974
Test: Presubmit
Change-Id: I1279789b09364b35a454e32417f687c1e055f27a
2022-01-10 14:41:21 +00:00
Jerry Chang 7f8e57ed68 Fix NPE when consuming snapshots for recent animation
Fix: 207716265
Test: no exception throws after recent animation
Change-Id: Ic35aea2285fb120f7d0b5215137ad9450518702f
2022-01-10 18:48:16 +08:00
Pat Manning 9d5962e173 Merge "Create taskbar for kids mode." 2022-01-10 10:46:48 +00:00
TreeHugger Robot 922084e5d9 Merge "Generate bugreports for ANRs and other anomalies" 2022-01-10 10:29:37 +00:00
Andy Chou 4ece098f3d Launch activity if click on a TaskView which has the task running on
different display wit root.

If click on the TaskView which has the task running on differnt display
with root, it means we are trying to pull the task to the root display.
So we should also launch the activity to the right display even it is in
live tile mode.
Also add null check for getRootViewDisplayId().

Bug: 207085426
Bug: 210075742
Test: manual test with app streaming wit phonehub notification
Change-Id: Icdaa6dfa26345d271f3505a0226cf434696f40da
2022-01-08 15:16:05 +00:00
vadimt 672f2fc24a Generate bugreports for ANRs and other anomalies
Bug: 211907395
Test: a similar approach was implemented for SysUI tests
Change-Id: I04770e73e6adf6bda63a8362976ec550434df6f3
2022-01-07 16:05:46 -08:00
TreeHugger Robot 1af0e4d22e Merge "Add null check when logging quick switch" into sc-v2-dev am: d873788275 am: 5bab8365b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16584901

Change-Id: I17f59874f884bf3b7c0e1d154d8d9ac8f9fa1b5c
2022-01-07 22:53:42 +00:00
TreeHugger Robot 5bab8365b4 Merge "Add null check when logging quick switch" into sc-v2-dev am: d873788275
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16584901

Change-Id: I90cd4d6af7b9c689d42f89fa06dfedb67a52da20
2022-01-07 22:32:32 +00:00
TreeHugger Robot d873788275 Merge "Add null check when logging quick switch" into sc-v2-dev 2022-01-07 22:13:12 +00:00
Tony Wickham 688148ac69 Add null check when logging quick switch
Test: none
Fixes: 209993127
Change-Id: I927f8969cf5ef3759b501fe1ada4d3b061b53d06
2022-01-07 18:32:14 +00:00
Pat Manning 2c4a1d8f7a Create taskbar for kids mode.
Test: manual
Bug: 203749295
Change-Id: I52c05cf8685e6e921bb717e9714d1cb2e5f4a351
2022-01-07 11:25:04 +00:00
TreeHugger Robot d311cc753d Merge "Don't show split option if device in "Lock task mode"" into sc-v2-dev am: 19b3b93e5c am: bff00ec14f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16576986

Change-Id: I8089f588770a0bca6aaa28a9f7acd3c7354f8e1d
2022-01-06 23:54:25 +00:00
TreeHugger Robot bff00ec14f Merge "Don't show split option if device in "Lock task mode"" into sc-v2-dev am: 19b3b93e5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16576986

Change-Id: I36ebbc43a81ced5616cd44098cc36ae86479f8d7
2022-01-06 23:38:09 +00:00
TreeHugger Robot 19b3b93e5c Merge "Don't show split option if device in "Lock task mode"" into sc-v2-dev 2022-01-06 23:20:54 +00:00
Vinit Nayak c09012766b Don't show split option if device in "Lock task mode"
fixes: 199342537
Change-Id: Id212cce20b792fb8b16e9fa8eca4635773ae5ea7
2022-01-06 13:37:46 -08:00
Wei Sheng Shih 3b7ae6e723 Merge "Public API setSplashScreenStyle(3/N)" 2022-01-06 05:25:32 +00:00
TreeHugger Robot ff5e679c70 Merge "Use list instead of array when filtering non-app leashes" into sc-v2-dev am: 5735251c33 am: a7d85caf4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16571427

Change-Id: Ifc053aaafd1b063e0f1f8f5d046c24a0022fd8ca
2022-01-06 00:53:05 +00:00
TreeHugger Robot a7d85caf4b Merge "Use list instead of array when filtering non-app leashes" into sc-v2-dev am: 5735251c33
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16571427

Change-Id: I5349197fcf386d9fe25a90218f5bd4a63f3fd856
2022-01-06 00:39:51 +00:00
TreeHugger Robot 5735251c33 Merge "Use list instead of array when filtering non-app leashes" into sc-v2-dev 2022-01-06 00:25:34 +00:00
TreeHugger Robot 491c680681 Merge "Handle split selection when animation is disabled" into sc-v2-dev am: 3a6a0f5a31 am: 0d07b6d0c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16512483

Change-Id: I3d2511065fe693a6d710d91d2f728914a05cda41
2022-01-05 23:30:56 +00:00
TreeHugger Robot 0d07b6d0c1 Merge "Handle split selection when animation is disabled" into sc-v2-dev am: 3a6a0f5a31
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16512483

Change-Id: I2a6f38c2786d835f002086407b44ec39ec145272
2022-01-05 23:14:15 +00:00