Commit Graph

2122 Commits

Author SHA1 Message Date
Sunny Goyal 87c8a511cd resolve merge conflicts of f17eb616a8 to ub-launcher3-qt-r1-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I4e177dfb7ba3bde6eb53f63c2f2df273feef90ee
2019-06-05 10:44:02 -07:00
Sunny Goyal 1b52c7e5de Some RecentsView layout fixes
> Only creating task overlay for one view at a time
> Fixing setOverviewStateEnabled called twice when going
  between OVERVIEW and BACKGROUND state

Bug: 132815672
Bug: 122345781
Change-Id: I51ac5b0744af87194eca08e07fd2c75b8fa0d3e0
2019-06-04 14:17:30 -07:00
Zak Cohen f3231f417d Remove unused hints code.
This layout is handled by the provider of the hints now.

Test: manual
Change-Id: Ifc0db2395a7503b1b03dcb796961ef6647c0413b
2019-06-03 14:58:18 -07:00
Tony Wickham dcff2f1875 Merge "Fix getting stuck in BackgroundAppState for 2-button mode" into ub-launcher3-qt-dev
am: 72c6e7b736

Change-Id: I6ab2194d50a6d7dfb7bd7c13bab776331c426c23
2019-05-31 16:26:39 -07:00
Sunny Goyal 3695646987 Merge "Fixing overview scrim not initialized properly when launcher starts" into ub-launcher3-qt-dev
am: 061c43eb4f

Change-Id: I58aa5801e698c8e8b2e0133f6995d77b341cc76f
2019-05-31 16:26:05 -07:00
TreeHugger Robot 72c6e7b736 Merge "Fix getting stuck in BackgroundAppState for 2-button mode" into ub-launcher3-qt-dev 2019-05-31 23:22:30 +00:00
Tony Wickham a04e746e84 Fix getting stuck in BackgroundAppState for 2-button mode
When ending in recents, we reapply the state - therefore, it's important
to make sure we are in OverviewState before onSwipeUpComplete(). This is
done by mLauncherTransitionController, which sets OverviewState on end.
We already force mLauncherTransitionController to end before calling
onSwipeUpComplete(), but in this case we were calling cancel() and
setting mLauncherTransitionController = null, which meant we could never
call end() on it. Instead, we should always call end() if we set it to
null.

Also ensure mLauncherTransitionController is created even if the gesture
is completed, if an existing controller isn't already running. This can
happen if you swipe up quickly enough that we get onGestureEnd before
launcher is drawn, and in that case we still want the launcher component
to animate once its ready. This is even more important for 2-button
mode, because again, we rely on mLauncherTransitionController to set the
state to OverviewState before we reapply it.

Finally, clarified some methods by renaming "swipeUp" to
"swipeUpToRecents".

Bug: 132757019
Change-Id: Ieb24a4f36a39780e5d64d7bc312791608db474d1
2019-05-31 16:11:40 -07:00
TreeHugger Robot 061c43eb4f Merge "Fixing overview scrim not initialized properly when launcher starts" into ub-launcher3-qt-dev 2019-05-31 23:01:36 +00:00
Govinda Wasserman c985c6e563 Merge "Adds trigger for new gesture entrypoint to Assistant bundle" into ub-launcher3-qt-dev
am: 164ebb2e8c

Change-Id: I43d6d72765b6d7aa69dce40a3350001a18c6ac63
2019-05-31 11:33:11 -07:00
Govinda Wasserman 164ebb2e8c Merge "Adds trigger for new gesture entrypoint to Assistant bundle" into ub-launcher3-qt-dev 2019-05-31 18:09:53 +00:00
Sunny Goyal 03d32ddb23 Fixing overview scrim not initialized properly when launcher starts
State UI depends on visible content, which can change due to predicitons.
Reapplying the state whenever then happens ensures that we are in correct
start UI

Change-Id: I9f195a92b747fda8a5b217dc960f230d7a695255
2019-05-31 11:00:35 -07:00
Tony Wickham ab384404b1 Merge "Don't recreate the launcher animation controller if gesture ended" into ub-launcher3-qt-dev
am: 8765e262c2

Change-Id: Ieb53126643d9f41a5ba5b85ca0d8b02ef2f6eb47
2019-05-31 10:55:54 -07:00
Tony Wickham 8765e262c2 Merge "Don't recreate the launcher animation controller if gesture ended" into ub-launcher3-qt-dev 2019-05-31 17:46:03 +00:00
Tony Wickham 436d5971b1 Don't recreate the launcher animation controller if gesture ended
This can happen if we get onApplyWindowInsets() after onGestureEnded().
In that case, we can get into some bad states because the running
animation is overwritten and thus can't be canceled.

Bug: 134096917
Bug: 133806285
Change-Id: Ic517d68a46a4446ca382445df1ba62c26e8243ad
2019-05-31 10:21:28 -07:00
Govinda Wasserman 254be7b0e4 Adds trigger for new gesture entrypoint to Assistant bundle
BUG:130186141
Change-Id: I43a4c3d3c9a46b4a1a5c53a81b037ba2be194188
FIX:130186141
2019-05-31 12:20:50 -04:00
Sunny Goyal 1343a69647 Merge "Fixing interactive state for background states and notifying LauncherCallback accordingly" into ub-launcher3-qt-dev
am: f36e5e002a

Change-Id: I7cf80c0047fce5c189dcaf0c77d3642300eaa458
2019-05-30 23:18:03 -07:00
TreeHugger Robot f36e5e002a Merge "Fixing interactive state for background states and notifying LauncherCallback accordingly" into ub-launcher3-qt-dev 2019-05-31 06:01:25 +00:00
Jon Miranda 88c2fd603d Fix bug where QSB flickers on app close.
am: 2ff7b53ec5

Change-Id: I0dedd1a8e054d06593253ed3c94303b42427b0c4
2019-05-30 21:16:09 -07:00
Jon Miranda 2ff7b53ec5 Fix bug where QSB flickers on app close.
Bug: 123900446
Change-Id: I9b03b2d91d264de237328511b5406e5fcd22dbac
2019-05-30 20:53:27 -07:00
Jon Miranda 457deedd53 Merge "Tuning app open/close animation." into ub-launcher3-qt-dev
am: 958cc0657f

Change-Id: I7a36afd0b02ee3c3892d14c4210246841b904d74
2019-05-30 19:18:13 -07:00
TreeHugger Robot 958cc0657f Merge "Tuning app open/close animation." into ub-launcher3-qt-dev 2019-05-31 02:04:03 +00:00
Jon Miranda b3c9077c76 Tuning app open/close animation.
* Mostly value changes.
* Added a way to round the corners during swipe up to home animation.

Bug: 123900446
Change-Id: Id61d241d919ba51ced0633585e36b7d93efe30b0
2019-05-30 18:43:22 -07:00
Tony Wickham e358d1fb92 Merge "If y velocity > x velocity in 2-button mode, go to recents" into ub-launcher3-qt-dev
am: ba33d1d216

Change-Id: I393f6e3dfc12c3b97196454322e0012a2a287489
2019-05-30 18:02:54 -07:00
TreeHugger Robot ba33d1d216 Merge "If y velocity > x velocity in 2-button mode, go to recents" into ub-launcher3-qt-dev 2019-05-31 00:49:10 +00:00
Tony Wickham 1689d65ac3 If y velocity > x velocity in 2-button mode, go to recents
Also, when landing in recents, snap to the nearest page so that swipe up
consitently goes to task 0 instead of sometimes scrolling to task 1.

Bug: 133518678
Change-Id: I63a161a9f1f87266d3c3fc71c98cd5fc5e2f8874
2019-05-30 17:38:46 -07:00
Sunny Goyal c7b214bf50 Merge "Disabling horizontal swipes if the app has draggable content at the bottom" into ub-launcher3-qt-dev
am: f4fa4be5d6

Change-Id: I863b97d7073b492fafef18cd2389d1e1aaec6d46
2019-05-30 15:37:31 -07:00
Sunny Goyal 38d8a63d07 Disabling horizontal swipes if the app has draggable content at the bottom
Bug: 133844237
Change-Id: I67a4140d56f87c464e436d394da77127a965c3e5
2019-05-30 15:13:09 -07:00
Sunny Goyal e9c6f4cc69 Fixing interactive state for background states and
notifying LauncherCallback accordingly

During quick switch Launcher can get resumed only to be paused again
when launching a new app. Updating the logic for deferred resume to
account for that and moving some additional calls to deferredResume

Bug: 134062513
Change-Id: Ia607f178bc17d45d53fb032a06cd70f9abc6b513
2019-05-30 11:59:29 -07:00
Vadim Tryshev 443f835070 Merge "Adding debug tracing for a lab-only issue" into ub-launcher3-qt-dev
am: 5f642bf783

Change-Id: Ib5ca0a16c36a704c0e7717d6dfdd4abba82b2f34
2019-05-30 11:18:54 -07:00
vadimt 26185e1fed Adding debug tracing for a lab-only issue
Task doesn't get resumed upon clicking at it.

Bug: 133765434
Change-Id: I8c5c1308041949d94c6982c78b8337ea81ad400f
2019-05-30 10:30:32 -07:00
Sunny Goyal 82fda10b26 Merge "Overview - Add motion to the footer shown on overview tasks." into ub-launcher3-qt-dev
am: 1d7b2a0672

Change-Id: I786cf2ca04a33d86070786f57c7d94f74af60751
2019-05-29 17:36:43 -07:00
Sunny Goyal 1d7b2a0672 Merge "Overview - Add motion to the footer shown on overview tasks." into ub-launcher3-qt-dev 2019-05-30 00:18:38 +00:00
Zak Cohen 3f6019fde4 Overview - Add motion to the footer shown on overview tasks.
The motion mirrors the icon view.

Bug: 125844074
Test: manual
Change-Id: Ib980657763aa82c45319c7c93be652f6fc89ffe4
2019-05-29 16:54:36 -07:00
Jon Miranda 04b7fa18e7 Merge "Fix bug where shape reveal progress gets started too early." into ub-launcher3-qt-dev
am: 1dbec0ef43

Change-Id: I934cccd1c0c79902938c5e3c3e9454cb0d45bfce
2019-05-29 15:14:50 -07:00
TreeHugger Robot 1dbec0ef43 Merge "Fix bug where shape reveal progress gets started too early." into ub-launcher3-qt-dev 2019-05-29 21:57:41 +00:00
Jon Miranda cbafc082f9 Merge "Animate workspace upwards when opening an app." into ub-launcher3-qt-dev
am: fafe347533

Change-Id: I0e645edd227aad7a46e7de082dbe63c8683cb258
2019-05-29 14:56:55 -07:00
Jon Miranda 87fd26fb21 Merge "Add staggered springs animation when swiping up to home." into ub-launcher3-qt-dev
am: ea068967ae

Change-Id: I67bb1689ca5b0154dd6480db55fac8105c8617d4
2019-05-29 14:56:40 -07:00
TreeHugger Robot fafe347533 Merge "Animate workspace upwards when opening an app." into ub-launcher3-qt-dev 2019-05-29 21:53:32 +00:00
TreeHugger Robot ea068967ae Merge "Add staggered springs animation when swiping up to home." into ub-launcher3-qt-dev 2019-05-29 21:47:27 +00:00
Jon Miranda 119a586245 Animate workspace upwards when opening an app.
Bug: 123900446
Change-Id: I3d08985f8362038f50728e91e2fedf1c97e326ff
2019-05-29 14:39:01 -07:00
Jon Miranda c69d1ffd92 Add staggered springs animation when swiping up to home.
Bug: 123900446
Change-Id: I275e34c6dca5b026f272ab216b18651c0df27bc4
2019-05-29 14:32:49 -07:00
Jon Miranda 928fc8d1e2 Fix bug where shape reveal progress gets started too early.
* This caused the shape to not match the window size on app close.

Bug: 123900446
Change-Id: Iaa2c06f19c535f72ae4c080b4bc847d336f1a77d
2019-05-29 14:19:16 -07:00
Vadim Tryshev a417f95921 Merge "Increasing wait time after mode switch." into ub-launcher3-qt-dev
am: 5a93e5d895

Change-Id: I6d1f172c7c130d0d09bc58a2360ef167a97608a7
2019-05-29 13:45:06 -07:00
vadimt b06f9f8c78 Increasing wait time after mode switch.
This is temporary. Apparently, it takes time for Sys UI to update after
the mode switch.

Change-Id: I434b86af15d9987a448682684c790d89acab85dc
2019-05-29 13:05:06 -07:00
Bill Yi 9789beae0e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I029f3fe3ecc187db70a0e86ed98f498f04be1d0a
2019-05-28 19:13:27 -07:00
Winson Chung 293d964024 Merge "Support individual lock task features" into ub-launcher3-qt-dev 2019-05-29 00:10:02 +00:00
Tony Wickham 5860288fc8 Merge "Continue scaling down recents past final position in 0 button mode" into ub-launcher3-qt-dev 2019-05-28 23:21:32 +00:00
TreeHugger Robot e34c91765f Merge "Improving swipe up interaction when device is locked" into ub-launcher3-qt-dev 2019-05-28 23:05:31 +00:00
Sunny Goyal 221895d06b Improving swipe up interaction when device is locked
When device is locked, only scale down the top task as a response to
the user interaction. When user flings or lifts his finger, the task
is dismissed to go to the lock screen

LockScreenRecentsActivity is an empty activity which starts on top of lock
screen and finishes immediately. This allows us to start a recents transition
with just the top activity as the animation target. This target is then used
for swipe up interaction

Bug: 133167096
Change-Id: I466ed142ea33d626c78cb9cc5f6311bad26b8d98
2019-05-28 15:55:07 -07:00
Zak Cohen 560fe07448 Chips container - Don't hard code the height of the chips container.
When the container was present, but empty, it was showing it's background.

Bug: 133783088
Change-Id: I97b65435d66e9ced7f5487dc50a00665794f8fcd
Tested: manual
2019-05-28 14:53:41 -07:00