Commit Graph

32083 Commits

Author SHA1 Message Date
Tony Wickham c2b4a149db Merge changes I9749124a,Ic59b877c,Ibe8734e8 into sc-dev am: 1282050f2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14448428

Change-Id: I5cd900a98ea9f36eb2009ef0a6142fc78a981ee3
2021-05-06 17:47:23 +00:00
Tony Wickham 1282050f2f Merge changes I9749124a,Ic59b877c,Ibe8734e8 into sc-dev
* changes:
  Fix running task damped by overscroll when other tasks are offscreen
  When overview appears from motion pause, come up from bottom
  Align home/back button from overview with tap outside
2021-05-06 17:29:25 +00:00
Alex Chau a4d3a9e4f7 Merge "Maintain TaskView's scroll invariant when swiping down" into sc-dev am: c9744631f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14425536

Change-Id: I8732143225877c09a9a3860b3cec62f2f34dc086
2021-05-06 11:14:03 +00:00
Alex Chau c9744631f4 Merge "Maintain TaskView's scroll invariant when swiping down" into sc-dev 2021-05-06 10:56:03 +00:00
Steven Ng ef019a1e50 Merge "Fix scrolling issue in the full widgets picker" into sc-dev am: 9b68983790
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442197

Change-Id: I88384dd3b7de4b7da16937e59da0a8f72dacb7b7
2021-05-06 09:40:36 +00:00
Steven Ng 9b68983790 Merge "Fix scrolling issue in the full widgets picker" into sc-dev 2021-05-06 09:24:23 +00:00
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 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
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 6255fd20f8 Merge "Fix a bug in TouchInteractionService for fixed-display input rotation" into sc-dev 2021-05-06 00:24:24 +00: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 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
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 46d420bf14 Merge "Add funtional animation for SplitSelect from Grid." into sc-dev 2021-05-05 19:03:47 +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 521561e92f Merge "Fix class cast exception in a11y service for widget resize action" into sc-dev am: 16d74e5d7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440782

Change-Id: I76b2198e83343079529e1d5cf599b0bc41c6bdbe
2021-05-05 18:12:54 +00:00
Steven Ng 2348b6869f Merge "Fix LayoutParams cast exception in drag-n-drop" into sc-dev am: f8af753b6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14332404

Change-Id: I42dc4e823a5d821b8841497803cc50dc0caef1e8
2021-05-05 18:12:31 +00:00
Steven Ng 16d74e5d7f Merge "Fix class cast exception in a11y service for widget resize action" into sc-dev 2021-05-05 18:07:53 +00:00
Steven Ng f8af753b6a Merge "Fix LayoutParams cast exception in drag-n-drop" into sc-dev 2021-05-05 18:07:32 +00:00
TreeHugger Robot ebc73b1139 Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev am: 9297064b2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440777

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

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

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

Change-Id: Ie19b35ea09b28e3ed53f2ef2248e35784ae9dd76
2021-05-05 18:02:55 +00:00
Sunny Goyal 5ded309dcd Some 3P launcher transition fixes am: 91d26f0b5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430440

Change-Id: Ief2991dc716e30a970ffd033df6eddf2d095e834
2021-05-05 18:02:46 +00:00
TreeHugger Robot 9297064b2e Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev 2021-05-05 17:50:57 +00:00
Vinit Nayak bf51afd420 Merge "Set menu item to MATCH_PARENT for tap target" into sc-dev 2021-05-05 17:43:27 +00:00
TreeHugger Robot cf6900d9ee Merge "Fixes NPE in AbsSwipeUpHandler." into sc-dev 2021-05-05 17:41:48 +00:00
Winson Chung cc03a9afa9 Merge "Allow binder calls from creating recents orientated state for now" into sc-dev 2021-05-05 17:39:15 +00:00
Vinit Nayak 2dbdddb4ba Add funtional animation for SplitSelect from Grid.
Long ways to go to final UI - TODO(b/186800707)
Add comments to grid layout code,
no functional changes at all.

Bug: 181705607
Test: Enter split screen from overview task menu
in grid and carousel. Able to select all items
and enter split.

Change-Id: Ib62f1b286acf0781ec47862fa31b670e6ff1892a
2021-05-05 09:38:42 -07:00
Cyrus Boadway f5c9900686 Add OnGlobalLayout listener to WidgetFloatingView
This mirrors the FloatingIconView implementation.

Bug: 169042867
Test: manual
Change-Id: Ic5531dd847af66b9b17f6806dc7fc04c00c42f06
2021-05-05 16:11:35 +00:00
Sunny Goyal 91d26f0b5e Some 3P launcher transition fixes
Bug: 182494821
Test: Manual
Change-Id: Ia003b50493dce24a439fc735c990ee470975f68f
2021-05-05 09:09:36 -07:00
Cyrus Boadway 1a36c637e4 Fix FloatingWidgetView post-animation fallback background handling am: e41034034f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14440781

Change-Id: I3dc5a43bfc407ca89d67c494deee6d70a596b8bd
2021-05-05 16:02:29 +00:00
Steven Ng ac05cb1343 Fix class cast exception in a11y service for widget resize action
Test: Enable talkback. Then navigate to a widget. Trigger talkback
      menu > actions > move. Able to move a widget without crash.
Bug: 186999201
Change-Id: Ic6a66fefd643443e3d5a8839e6f2fe10c946dab2
2021-05-05 15:38:28 +01:00
Cyrus Boadway e41034034f Fix FloatingWidgetView post-animation fallback background handling
The background drawables should only be restored to the original view if
the values are non-null. The original view may have had a background drawable
be a drawable, just not one that's elligible for animation. In that
case the local reference is null. We should not restore that.

Bug: 169042867
Test: manual
Change-Id: I54eaac5632e3f4f25daee2c36d7609e8b2ffedaf
2021-05-05 14:23:35 +00:00
TreeHugger Robot 60e8e6680f Merge "Don't crash on dialer app target search results" into sc-dev am: e80a0caa81
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14436804

Change-Id: Ieb32885f7d66e12bb10fe426b6962d03f98a4b96
2021-05-05 07:42:49 +00:00
TreeHugger Robot e80a0caa81 Merge "Don't crash on dialer app target search results" into sc-dev 2021-05-05 07:08:12 +00:00
TreeHugger Robot 1cd78c3317 Merge "Support live tile for 3rd party launchers" into sc-dev am: 7645422e37
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14409355

Change-Id: If00238d4f7b6d87bf1742863f68de2d923c31f68
2021-05-05 06:14:43 +00:00
TreeHugger Robot 7645422e37 Merge "Support live tile for 3rd party launchers" into sc-dev 2021-05-05 06:04:10 +00:00
Hyunyoung Song 67edf1654c Don't crash on dialer app target search results
Bug: 186412929
Test: manual
Change-Id: Ic1ab6e212d36ca1f711f51d047e4d62106bf0680
2021-05-04 22:29:33 -07:00
Tony Wickham ae4e31d3ae Fix a couple of issues with quick switch from home to empty recents
- Add SKIP_SCRIM for mNonOverviewAnim, as the scrim  is already
  handled by mXOverviewAnim (this prevents some flickering).
- If RecentsView is empty, fade it in. This is less jarring than
  the "No recent items" appearing immediately without animation,
  and ensures it fades out seamlessly if you return home instead.

Test: Quick switch from home with no tasks and 1 task
Bug: 174228745
Change-Id: I57edc0cea4d1dfa40f87f7ccc5aa3d6b8929a1ff
2021-05-04 22:08:42 -07:00
Andy Wickham 90097d873d Fixes NPE in AbsSwipeUpHandler.
Fixes: 187243410
Test: Manual (not sure of exact repro steps, but I was hitting it
before installing - though reinstall itself may have fixed it).

Change-Id: I7510a675da9d2c1a484da8e00ca856f19445025c
2021-05-04 22:02:16 -07:00
Tracy Zhou 7497a874ee Support live tile for 3rd party launchers
Fixes: 183725555
Test: tapl and manually install launcher3 with quickstep

Change-Id: Id7727c8d87db61de992e6341939c322da9ff5204
2021-05-04 21:48:58 -07:00
TreeHugger Robot 0b391711d5 Merge "Adds AllSetActivity in Launcher." into sc-dev am: 19a1c4765f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14419322

Change-Id: Id000f1f81eff3a2cb5f1476090f2d734f962a050
2021-05-05 03:22:52 +00:00
TreeHugger Robot 92dab99bed Merge "All apps motion tuning [1/n]" into sc-dev am: 04b5003b2e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14420132

Change-Id: Ib5bde76a2a79d998cfd49fc7973fc3f60fbdd184
2021-05-05 03:22:37 +00:00