Commit Graph

5792 Commits

Author SHA1 Message Date
Tracy Zhou 68d7cad863 Merge "Null check RecentsView before calling launchSideTaskInLiveTileMode" into sc-dev am: 8d8a655bbb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14457135

Change-Id: I93609650fa70935edd177dd8cfb697aee84b3612
2021-05-07 04:12:12 +00:00
Tracy Zhou 8d8a655bbb Merge "Null check RecentsView before calling launchSideTaskInLiveTileMode" into sc-dev 2021-05-07 03:49:52 +00:00
Hongwei Wang baedbeb438 Merge "Support entering PiP from live tile" into sc-dev am: ea34ef9f5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14455858

Change-Id: I79e104de6a81f7fa6ede067a6a6a34f86e31ac04
2021-05-07 01:03:32 +00:00
Hongwei Wang ea34ef9f5f Merge "Support entering PiP from live tile" into sc-dev 2021-05-07 00:57:46 +00:00
Winson Chung 1e018374a0 Merge "Handle volume key events while in overview" into sc-dev am: 45849e22c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14456869

Change-Id: I700a6742cd4d9a2a43e4ff7c897a921d9c5fd484
2021-05-07 00:54:11 +00:00
Winson Chung 45849e22c9 Merge "Handle volume key events while in overview" into sc-dev 2021-05-07 00:36:48 +00:00
Winson Chung 5da72b5be8 Handle volume key events while in overview
- Normally this gets dispatched to an app's phone window to notify
  the media session manager, but because the recents input consumer
  routes to the launcher window bypassing phone window, the event
  never gets processed.

Fixes: 185520916
Test: Open overview from an app, ensure volume dialog still shows
Change-Id: I8784a6211e56f320b8b9d688fa0568c583652725
2021-05-07 00:36:34 +00:00
TreeHugger Robot 6b5c7da9d5 Merge "Explicitly set mAllowGoingDown = false when only up is allowed" into sc-dev am: 2b93dbb0b8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14444776

Change-Id: I068e414ea83d67f2672a04f5ca2a8441c6cb0840
2021-05-06 23:49:53 +00:00
Tracy Zhou adc109cabe Null check RecentsView before calling launchSideTaskInLiveTileMode
Test: N/A
Fixes: 185066406
Change-Id: Ic85bbe02b93c7cc652543138d3ea79f7892c7268
2021-05-06 16:36:31 -07:00
TreeHugger Robot 2b93dbb0b8 Merge "Explicitly set mAllowGoingDown = false when only up is allowed" into sc-dev 2021-05-06 23:26:14 +00:00
Hongwei Wang a608df0c81 Support entering PiP from live tile
When finish the recents animation, send user leave hint if live tile is
currently on. Note that we force the PiP window fades in in this case.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/bLoRpbgcyZBt1UiQPZEXcF
Bug: 187421300
Test: manual, see video
Change-Id: I07bc307c5eb895cd23b764af92e39ff7e6f8e805
2021-05-06 16:10:44 -07:00
Sunny Goyal 5386e98900 Merge "Linking various settings that control icon cache to icon state" into sc-dev am: eab1f9bfbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430001

Change-Id: Ib85d5ee9beb61bb21e9e72d9589b9906e3b09f83
2021-05-06 21:03:58 +00:00
Sunny Goyal eab1f9bfbe Merge "Linking various settings that control icon cache to icon state" into sc-dev 2021-05-06 20:59:54 +00:00
Vinit Nayak f5f6fd0e21 Merge changes from topics "taskbar3Button", "taskbarIME" into sc-dev am: b2993d65b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14215248

Change-Id: I694075af1cab1c98e3a4a473a09af6b749519701
2021-05-06 20:56:43 +00:00
Vinit Nayak 35d67239f7 Initial commit of 3 button work am: 16fd85629d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13989017

Change-Id: I0b1b5fb6c865d3e100a49b9f31cf34ccb6146b5f
2021-05-06 20:56:42 +00:00
Vinit Nayak b2993d65b7 Merge changes from topics "taskbar3Button", "taskbarIME" into sc-dev
* changes:
  Add IME switcher/hide button bar when IME showing
  Initial commit of 3 button work
2021-05-06 20:47:41 +00:00
Tony Wickham 878a005d07 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: If2cd0304bb0677cb8b03070fc2e882ae11dc2aba
2021-05-06 17:49:21 +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 8e0022c532 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: Id96456598f28ddf6542c3b1242bcdcddbffdd857
2021-05-06 11:16:11 +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
Sunny Goyal b47172bc4e Linking various settings that control icon cache to icon state
Also separating icon provider for recents from Launcher as it used a fixed size

Bug: 183641907
Test: Verified on device
Change-Id: I6ea3caa0066d1483bfb8a81f0e8aaa472c813afe
2021-05-05 23:05:38 -07: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 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 739420bc38 Merge "Some cleanup for handler invalidation" into sc-dev 2021-05-06 02:21:57 +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 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 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
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 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 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
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
TreeHugger Robot 795ca19a3c 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: I456f2c2dbb158af6947cc8352aa7b19c2ac3da37
2021-05-05 18:15:09 +00:00
TreeHugger Robot ddaab15dba 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: Ia089634e14dc1db6f50985369d6b2a43e894c1b0
2021-05-05 18:14:54 +00:00
Winson Chung 60148a1716 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: I4f401767475afa6eaeeb9d810b6cf02d6e5ca0fd
2021-05-05 18:14:35 +00:00
Sunny Goyal 53ceb7df56 Some 3P launcher transition fixes am: 91d26f0b5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14430440

Change-Id: I9c2f0ff9dc09c0aaf2814c2fe75459dbe2937c19
2021-05-05 18:13:56 +00:00
TreeHugger Robot 9297064b2e Merge "Add OnGlobalLayout listener to WidgetFloatingView" into sc-dev 2021-05-05 17:50:57 +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 e25a5157b4 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: Id697f4b941d6358f756fafdd64e82e9fd08e8402
2021-05-05 16:04:34 +00: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 20caf8147a 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: I5f88903f2e00833c4e5ade01b488bb02ad20f1ce
2021-05-05 06:16: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