Commit Graph
60459 Commits
Author SHA1 Message Date
Tony Wickham 48d6dc7708 Fix running task damped by overscroll when other tasks are offscreen
Test: Swipe up and to the left from an app, ensure the running task
scrolls freely until the adjacent task comes in from offscreen
Bug: 185411781

Change-Id: I9749124a6b6f014b55e3430d1764766a232eb9dd
2021-05-05 21:08:54 -07:00
Tony Wickham e8b22d5e60 When overview appears from motion pause, come up from bottom
- Add vertical offset calculations to RecentsView (in addition to
  the existing horizontal offset which has been renamed accordingly).
- LauncherState#getOverviewScaleAndOffset() now supports both
  horizontal and vertical offsets and is specified such that overview
  appears and disappears from the bottom of the screen rather than the
  side.
- Quick switch still uses horizontal offset to come from the side.
- No longer need to scroll to page 0 when translating offscreen.
- Update interpolators for overview to home transition.
- Align 2 button mode transition with 0 button mode.

Test: Visually checking all of these. As appropriate, repeat in 0, 2, 3
button modes, landscape/portrait/fake landscape, and 3P launcher
- Quick switch from home
- Home to overview
- Overview to home (swipe up)
- Overview to home (tap outside)
- Overview to home (back invocation)
- Quick switch from app
- Swipe up and hold from app
- Dismiss an app
- Empty recents
- Split select state to home
- Modal state to home

Bug: 185411781
Change-Id: Ic59b877ccc0050afd7cd478778e9eeb60e2e47f7
2021-05-05 21:08:49 -07:00
Tony Wickham bb3460c01f Align home/back button from overview with tap outside
Set all interpolators in QuickstepAtomicAnimationFactory instead of
overriding some in OverviewToHomeAnim. This also means we can just
use a normal state transition instead of OverviewToHomeAnim when
tapping outside recents (i.e. startHome()).

Test: in all three gesture modes, the same animation is played
whether tapping outside recents, pressing home, or pressing back
Bug: 185411781

Change-Id: Ibe8734e8bd7041943eb76cac30d7cac26a90c73e
2021-05-05 21:08:21 -07:00
Tony Wickham ba14e90066 Merge "Some cleanup for handler invalidation" into sc-dev am: 739420bc38 am: a1241a586d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442753

Change-Id: I6273a3ebdf1170ba381de4da758759f3c6ef6cc6
2021-05-06 03:13:14 +00:00
android-build-team Robot 9ab3bee47b Snap for 7339917 from 01ac8f3dad to tm-release
Change-Id: Iae612fe2fe897038e9bc9242ca4e6fadba169390
2021-05-06 03:07:59 +00:00
Tony Wickham a1241a586d Merge "Some cleanup for handler invalidation" into sc-dev am: 739420bc38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442753

Change-Id: I4190af1777e00723d4ed64d5e24c511bf69b3deb
2021-05-06 02:43:14 +00:00
Tony Wickham 59159ba379 Merge "Some cleanup for handler invalidation" into sc-dev am: 739420bc38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442753

Change-Id: I7cf99b5ce229922959ddcee73bf78012e6e090ff
2021-05-06 02:41:35 +00:00
Tony Wickham c3f57f39fe Merge "Some cleanup for handler invalidation" into sc-dev am: 739420bc38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442753

Change-Id: Ie1ec7e6050d4b2475b7843f0397a91cd1dc6f8f6
2021-05-06 02:41:21 +00:00
Tony Wickham e5c2111d28 Merge "Some cleanup for handler invalidation" into sc-dev am: 739420bc38
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442753

Change-Id: Icd2f8eea11b0249bbfb67abe3b334a8a85d2cee3
2021-05-06 02:41:11 +00:00
Tony Wickham 739420bc38 Merge "Some cleanup for handler invalidation" into sc-dev 2021-05-06 02:21:57 +00:00
android-build-team Robot 05255fc10b Snap for 7339742 from 7ef5456182 to sc-release
Change-Id: I97e6325bcac8c34d4d67f063cd64d6d814f00d40
2021-05-06 01:15:30 +00:00
android-build-team Robot b433ffb6fa Snap for 7339742 from 7ef5456182 to sc-v2-release
Change-Id: Ibb4e00821b01b0cb46d14b2bb2828115aa4f4154
2021-05-06 01:09:33 +00:00
Evan Rosky 728053e9bb Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev am: 6255fd20f8 am: a1837f7e34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14429344

Change-Id: If07b35913d523805ca4c40c7c953feb3e922eeab
2021-05-06 01:04:01 +00:00
Evan Rosky a1837f7e34 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev am: 6255fd20f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14429344

Change-Id: Id86e853bd2581d5c6fca54c3bfbd9b2615378ae4
2021-05-06 00:51:09 +00:00
Evan Rosky fa6f62aef1 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev am: 6255fd20f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14429344

Change-Id: I56d049420e4305ecbfff940b1322af19751e525d
2021-05-06 00:49:24 +00:00
Evan Rosky 8721df88b9 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev am: 6255fd20f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14429344

Change-Id: Ib7fff2de72a5ea23449158cb7e158111076b077e
2021-05-06 00:49:18 +00:00
Evan Rosky ffcd1131dd Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev am: 6255fd20f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14429344

Change-Id: Ibee1e48fae33127b3f6bb023b9cc9466d87c213c
2021-05-06 00:49:08 +00:00
Evan Rosky 6255fd20f8 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev 2021-05-06 00:24:24 +00:00
Evan Rosky 7ee3651a19 Launch overview as transient
This way it won't cause the top running activity to pause until
the transition completes

Bug: 183993884
Test: enable shell_transitions, launch an app, go to overview,
      observe dumpsys and see that app remains RESUMED
Change-Id: I4311ade2e47062129874ae92bc7f5bea81bf2439
2021-05-05 17:01:45 -07:00
Tony Wickham 4f78df9300 Explicitly set mAllowGoingDown = false when only up is allowed
Test: swipe up and down on a task, then scroll to clear all and
try it again; should go up but not down in the second case
Fixes: 187349538

Change-Id: I0879bafb3b5bb3c5ced8a502c98bfba7a3ce8a51
2021-05-05 16:59:38 -07:00
Tony Wickham 95e62812b2 Some cleanup for handler invalidation
- Cancel reapplyWindowTransformAnim when STATE_HANDLER_INVALIDATED
- Set mActivity and mRecentsView = null in
  invalidateHandlerWithLauncher() instead of posting from
  invalidateHandler()
- Just in case, ignore onActivityInit() if we're already invalidated

Test: Tap repeatedly in nav region in an app, no crash
Fixes: 186983662
Change-Id: I3c005099b46ebb7c9203bcfcceedf48679dd1965
2021-05-05 16:20:17 -07:00
Steven Ng edfec2fc0b Fix scrolling issue in the full widgets picker
Before this change, the widgets recommendation table handles all the
touch events. The table doesn't distinguish a touch event from a scroll
event. This change forwards the motion event to the active recycler view.
If the recycler view doesn't handle the event, it will then forward the
event back to the view hierarchy.

Test: Open the full widgets picker, then start scrolling on the
      recommended widgets UI. The full widgets picker scrolls perfectly.
      Drag-n-drop a recommended widget
Bug: 186567644
Change-Id: I89d473179796c516d2394332dd75f8e9a1d8b388
2021-05-05 23:19:09 +01:00
TreeHugger Robot 0d74388f8a Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182 am: 0804768c9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409050

Change-Id: Id1b0a3d844b4122eb3e32351152d273ef77f2c11
2021-05-05 21:02:30 +00:00
TreeHugger Robot 0804768c9f Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409050

Change-Id: I6f4f7c4bb68d2ced86f60013fd00a66c7ccbea98
2021-05-05 20:39:42 +00:00
TreeHugger Robot d31641baec Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409050

Change-Id: I2e9792ff3529f3d12f44164e69326388b68d83a3
2021-05-05 20:37:59 +00:00
TreeHugger Robot 01ac8f3dad Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409050

Change-Id: I6f7d0be88258f342201b13f738e2714961b0b168
2021-05-05 20:37:54 +00:00
TreeHugger Robot 95048f8422 Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev am: 7ef5456182
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409050

Change-Id: Icf510f7858439967f3bf27c3c4d1908ceb705135
2021-05-05 20:37:47 +00:00
TreeHugger Robot 7ef5456182 Merge "Call windowInsetController.hide method when hiding keyboard" into sc-dev 2021-05-05 20:14:42 +00:00
Vinit Nayak 673faf59ee Add IME switcher/hide button bar when IME showing
Bug: 180046394
Change-Id: Ic2bd919ab3d27e0a430b081c771ea8dc5827be81
2021-05-05 12:50:39 -07:00
TreeHugger Robot a9fdf59c35 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev am: 46d420bf14 am: 1c55c0b645
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14373811

Change-Id: I8d9097951a91a886df34c67f7dce0dc8735f5c43
2021-05-05 19:30:16 +00:00
TreeHugger Robot 511fd3bd7f Merge "Add funtional animation for SplitSelect from Grid." into sc-dev am: 46d420bf14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14373811

Change-Id: I87348741e8c71cf8a445a42156ff03f17f806d92
2021-05-05 19:29:45 +00:00
TreeHugger Robot 34881df9a3 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev am: 46d420bf14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14373811

Change-Id: Iecb2d8ce70fd7cd6491be9f4017b4b5491e2983b
2021-05-05 19:29:45 +00:00
TreeHugger Robot ad73d45d5a Merge "Add funtional animation for SplitSelect from Grid." into sc-dev am: 46d420bf14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14373811

Change-Id: I2da7c6106a544f209e8d59d0b815367e1815ada4
2021-05-05 19:29:34 +00:00
TreeHugger Robot 48c0526ea6 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev am: 2f890c4ab7 am: 6d9bab323f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436800

Change-Id: Iec907d53752befdcba1a1ba853f458a776860710
2021-05-05 19:29:16 +00:00
TreeHugger Robot 1c55c0b645 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev am: 46d420bf14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14373811

Change-Id: I1cd80fc8b4843ada54292b8419fc9271189b2631
2021-05-05 19:08:57 +00:00
TreeHugger Robot 46d420bf14 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev 2021-05-05 19:03:47 +00:00
TreeHugger Robot 6d9bab323f Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev am: 2f890c4ab7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436800

Change-Id: Id3dda28a80e2695983721397204f26a975a89224
2021-05-05 19:01:32 +00:00
TreeHugger Robot 4536594248 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev am: 2f890c4ab7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436800

Change-Id: I1ccb205af6f139e42f4e3d821ca5047802cfb9ee
2021-05-05 18:59:58 +00:00
TreeHugger Robot 4432ef7735 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev am: 2f890c4ab7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436800

Change-Id: I2ec77709d65955e9874b07bd11d4669261ca655d
2021-05-05 18:59:37 +00:00
TreeHugger Robot 6812cc8bd4 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev am: 2f890c4ab7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436800

Change-Id: Ia5d65d584fb4d21420d4bf964f32b91f613fc5ff
2021-05-05 18:59:24 +00:00
TreeHugger Robot 2f890c4ab7 Merge "Fix a couple of issues with quick switch from home to empty recents" into sc-dev 2021-05-05 18:37:25 +00:00
Steven Ng e40ddf688e Merge "Fix class cast exception in a11y service for widget resize action" into sc-dev am: 16d74e5d7f am: cd163000f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440782

Change-Id: I9d3792d854cecea49227a6c149629d1084e2f81d
2021-05-05 18:31:32 +00:00
Steven Ng e334bcbb7b Merge "Fix LayoutParams cast exception in drag-n-drop" into sc-dev am: f8af753b6a am: 6e6c62dd6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14332404

Change-Id: I0659034767f0c82c47260d0937c47a3314ceb6df
2021-05-05 18:31:28 +00:00
TreeHugger Robot 3d56b20703 Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev am: 9297064b2e am: 795ca19a3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440777

Change-Id: Ic634831226915fd54fa8b685a678d8497f848799
2021-05-05 18:31:23 +00:00
Vinit Nayak a1d6dd0500 Merge "Set menu item to MATCH_PARENT for tap target" into sc-dev am: bf51afd420 am: e3fe6d18cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14434286

Change-Id: I95bd7cc0f2fdf6d1193834d012e810fb0804a00a
2021-05-05 18:31:20 +00:00
TreeHugger Robot aaaddc7c31 Merge "Fixes NPE in AbsSwipeUpHandler." into sc-dev am: cf6900d9ee am: ddaab15dba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436551

Change-Id: I71daff767faee502cdcfe767c08ba44baca794b6
2021-05-05 18:31:16 +00:00
Winson Chung 6159fe9b7e Merge "Allow binder calls from creating recents orientated state for now" into sc-dev am: cc03a9afa9 am: 60148a1716
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14421143

Change-Id: I2ee9baf3c012fbdc65cd550001f2fd5d7f7c09df
2021-05-05 18:31:00 +00:00
Sunny Goyal 0144fe1bce Some 3P launcher transition fixes am: 91d26f0b5e am: 53ceb7df56
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430440

Change-Id: I24d4d36b6bb5aa5183217c0745a8620093b5c68e
2021-05-05 18:30:46 +00:00
Vinit Nayak 16fd85629d Initial commit of 3 button work
Home, Back and Recents basic functionality working

Fixes: 180046394
Change-Id: Ifc5c767e35e88183500d14d14736eb40df436369
2021-05-05 11:25:36 -07:00
Jon Miranda 2955fa8f5c Add method to check if popup supports color extraction.
Bug: 187058092
Test: manual
Change-Id: I795cd3bfd04a7ab9b4730a2e7d7618830faae37e
2021-05-05 11:20:20 -07:00