Commit Graph

23356 Commits

Author SHA1 Message Date
Sunny Goyal
3bac2c2b91 Adding callback to notify LauncherCallbacks when quickstep starts
Bug: 73081875
Change-Id: Ieccba6ecb16553ed5211f277b49e9f2ed2d7c745
2018-02-07 14:50:08 -08:00
Tony Wickham
03c8e3ffad Add quickstep onboarding text and send to sysui
Bug: 72999860
Change-Id: I3b67f197e16fdf7d646a81210baa6fd24ead61ed
2018-02-06 16:19:01 -08:00
Sunny Goyal
103ef2747a Merge "Only initialize the animation control when gesture starts" into ub-launcher3-master 2018-02-06 22:27:08 +00:00
Sunny Goyal
ef3ae11014 Only initialize the animation control when gesture starts
Change-Id: Ic7fe373b826d3a11348f84671bf7bda618820546
2018-02-06 14:03:49 -08:00
TreeHugger Robot
48565484a6 Merge "Fix label is not badged + failed to start "App Info" in correct user" into ub-launcher3-master 2018-02-06 21:38:19 +00:00
Tony Mak
23d627fef8 Fix label is not badged + failed to start "App Info" in correct user
FIX: 72805206
FIX: 72808690
FIX: 72808798

Change-Id: I0df4ba9424c4002ac496e932d4f9d410de5630cd
2018-02-06 20:41:52 +00:00
TreeHugger Robot
5a090a7242 Merge "Preserving the last state when going to overview." into ub-launcher3-master 2018-02-06 18:15:30 +00:00
Sunny Goyal
af161fd20c Preserving the last state when going to overview.
> Resetting the state to NORMAL on every onStop so that the user
  never starts on the overview screen

Change-Id: If3c17693b7125a3969809e60891a2ab978fe83bc
2018-02-06 10:06:53 -08:00
Sunny Goyal
c4341e8a1b Using state property for animating hotseat
Bug: 72664334
Change-Id: Ib9f9b94380e04a9ea43ae164cc2ff587d3d3a9a8
2018-02-06 09:56:08 -08:00
TreeHugger Robot
bd0beb9933 Merge "Cancel launcher app transition when changing states" into ub-launcher3-master 2018-02-06 02:59:03 +00:00
Tony
dc76f8e856 Cancel launcher app transition when changing states
The app transition might change an object that the new
state depends on, causing an inconsistent state.

Bug: 72816542
Change-Id: Ia6dd52971b52be5589c88f4f6d93d06146fbadab
2018-02-05 18:48:24 -08:00
Jon Miranda
39552b83b7 Skip Launcher opening animation if its not in the set of opening apps.
Bug: 72811741
Change-Id: I81d71fac9908c375052567cda43dffa92cd3d9f6
2018-02-05 14:10:36 -08:00
Winson Chung
24bd85a848 Fix issue with reseting touch handler
- Cleaning up/removing some extraneous code

Change-Id: I770383b7c3a4efb75e890dfb48196265636a2c44
2018-02-05 12:27:53 -08:00
Sunny Goyal
8b264568a1 Waiting for a small timeout for launcher draw, before performing the swipe gesture.
This allow for a better synchronized motion, in case launcher draw was fast enough

Change-Id: Ie59aa1e8a2ffa94f3640b4ea08a0c23eeabafb54
2018-02-05 10:39:29 -08:00
Sunny Goyal
0ecca76f7c Refactoring the touch handling into a different class.
This makes it easier to maintain states for a single touch session (from down to up/cancel)

Change-Id: I27da239376337cd02c104fea54e39b2e30b53fab
2018-02-02 15:41:55 -08:00
Tony Wickham
973fa5350e Merge "Entering overview from home focuses on first task" into ub-launcher3-master 2018-02-02 22:25:17 +00:00
Tony
6f292aedb2 Entering overview from home focuses on first task
This is behind a settings flag.

Change-Id: I7a118187dac9ab4b024f041faafa9e7d47a571d7
2018-02-02 15:11:20 -06:00
Sunny Goyal
85a7fe086b Some fixes for quickstep when configuration changes
> Creating the launcher animation after first draw, so that the UI is in correct state
> Using correct workspace size, when layout is not valid
> Snapping pagedView to correct page when page size changes
> Resoting to correct workspace page on rebind

Change-Id: I74e61a05aae3a3c4912d4c5c8eb4d5d036d9005a
2018-02-02 11:02:51 -08:00
Tony
aed78b7636 Use sysui lib to determine if screen pinning is enabled
Bug: 70294936
Change-Id: Ie71984a1693ad2ffbb308a1830486511cb2c3577
2018-02-02 12:02:16 -06:00
Tony
9c70e7e220 Update task menu
- Remove widgets option
- Add Split screen
- Add Pin
- Tap as well as long press icon to show menu

Bug: 72320614
Bug: 70294936
Change-Id: I231160286426ac3d2a23524b2f4a0170f963190e
2018-02-02 10:54:09 -06:00
Sunny Goyal
fde5505d02 Handling configuration changes
> Adding a listener for device profile changes
> Updating various controllers instead of recreating them
> Clearing all-apps icon

Bug: 71709920
Change-Id: Ief7db199eb7494ebd8fb433198f333cd2e8e661d
2018-02-01 14:47:08 -08:00
Sunny Goyal
c94cfc052c Merge "Initial changes for handling configuration changes dynamically" into ub-launcher3-master 2018-02-01 21:35:10 +00:00
TreeHugger Robot
d0f20abec4 Merge "Fix a couple of issues with app close" into ub-launcher3-master 2018-02-01 18:18:53 +00:00
Jorim Jaggi
fc0f6a5c5a Fix a couple of issues with app close
- Make sure to use center pivot point
- Use correct curve for alpha
- No need for the layer hack anymore because framework issue
was fixed.
- End X should be 480dp for a 411dp device, so we need to scale
it with 1.16

Test: Close app
Change-Id: Ib4587e324aeeb11921de87da7c389b2e148dc913
Fixes: 72691044
2018-02-01 19:07:33 +01:00
Sunny Goyal
f8d56fc8a1 Initial changes for handling configuration changes dynamically
Bug: 71709920
Change-Id: I88cf2229dea28d01c13a5a76d2290e91b07d095e
2018-01-31 15:20:30 -08:00
Sunny Goyal
e75d9f1ec3 Preloading the LauncherModel in case launcher dies
Change-Id: Ibe529f31e96c645d45d51b9f3bf6c21b76b41254
2018-01-31 12:01:59 -08:00
TreeHugger Robot
260fec1b24 Merge changes Ib95f0c41,I5a1488aa into ub-launcher3-master
* changes:
  Start the recents window animation on touch down.
  Only keep running task id.
2018-01-31 17:22:03 +00:00
TreeHugger Robot
1470e6bb33 Merge "Fix app closing transition in multi-window" into ub-launcher3-master 2018-01-31 17:19:15 +00:00
Winson Chung
7dde1c3b9b Start the recents window animation on touch down.
Change-Id: Ib95f0c41e2dc0e9274268e70da63b63e3092fc94
2018-01-31 09:09:15 -08:00
Winson Chung
7d7783b618 Only keep running task id.
Change-Id: I5a1488aacd4e3ec8d2131ddbd953db6409d737fd
2018-01-31 09:06:53 -08:00
Sunny Goyal
87eca2b9f8 Merge "Fixing Launcher UI jump if the fling animation is completed before launcehr first frame" into ub-launcher3-master 2018-01-31 16:58:57 +00:00
Jorim Jaggi
6674249107 Fix app closing transition in multi-window
Previously we attempted to disable the app closing transition
in multi-window. However, that didn't work because the registered
remote animation was still registered on the ActivityRecord, even
if the activity was restarted, leading to passing a null handler
into post, and then the animation never started.

Enable it in multi-window and also fix the transition.

Test: Enter multi-window, go home
Change-Id: I4d5d46688310b61365ba954fb41811efa29e41a5
Fixes: 72525431
2018-01-31 17:51:17 +01:00
Tony Wickham
d5e5109e6f Merge "Fix some visual bugs" into ub-launcher3-master 2018-01-31 16:36:15 +00:00
Sunny Goyal
7718fdc178 Fixing Launcher UI jump if the fling animation is completed before launcehr first frame
Also temporarily removing input consumer, as that might be causing event to getmissed
(similar to b/72715390)

Change-Id: I82918133d334fae5d3da267b0d03ff2af8f02e67
2018-01-30 19:01:09 -08:00
Sunny Goyal
8317b6935a Using a background thread for controlling window animation
Animate the task window on the background thread, until the launcher UI is ready.
After the first frame of launcher is drawn, we switch the input handling to UI thread
and fade in the launcher UI.

Change-Id: Ia3d04b697530af3db441b14ad34827208b923137
2018-01-30 13:42:27 -08:00
Winson Chung
1a341002fc Add code path for the recents animation using window transitions.
Test: Enable in settings, swipe up

Change-Id: I1053f9e519c2f612bd3db0b66cd16ad9a30bfeb4
2018-01-29 14:14:07 -08:00
Jorim Jaggi
d30e74b58c Fix parameter order
Test: Close app
Change-Id: Id476852a83e353d7651c011fcf9e532cfddc9112
Fixes: 72627528
2018-01-29 14:19:37 +01:00
Tony
12e9f34bd5 Fix some visual bugs
- Workspace was translating while swiping from overview to all apps
- VerticalSwipeController progress jumped a bit backwards when
  flinging because sign wasn't taken into account for velocity

Change-Id: Ife5e9d87ca9f0b3429dd9045c6569868a65eb0af
2018-01-26 20:59:16 -08:00
Sunny Goyal
7e2e67fd47 Adding isSeascape method to have a common place to orientation check
Change-Id: Ia61792b29ab0d1d74f76a8dfa53bbf968874dfaa
2018-01-26 13:47:32 -08:00
Jonathan Miranda
3c24060b62 Merge "Refactor LauncherAppTransitionManager & polish for new app transitions." into ub-launcher3-master 2018-01-26 00:49:04 +00:00
Jon Miranda
54441f5df9 Refactor LauncherAppTransitionManager & polish for new app transitions.
* Add start delay when launcher resumes from all apps or landscape.
* Track the last app transition animator and cancel it before beginning a new one,
  otherwise the animators can conflict with each other.
  ie. Opening an app from all apps and then immediately pressing back to return to
      all apps.
* Use class overrride instead of UiFactory.

Bug: 70220260
Change-Id: I4755d45d820f9d551e443d6c4a148e8789c5bc57
2018-01-25 14:32:47 -08:00
Sunny Goyal
0ea5006cba Adding TaskOverlayFactory to extend the TaskView behavior
Change-Id: I52e1a8b55174055268c8b0ef8c4336609d4d2a79
2018-01-25 13:45:19 -08:00
Sunny Goyal
82d010f0d2 Fixing insets not getting scaled properly in thumbnail
Bug: 72329990
Change-Id: I575c0a29cfbcf2849679eae3b7797a291ec8c72a
2018-01-24 18:55:48 -08:00
Tony Wickham
5378b9ab01 Set sQuickScrubEnabled = false in onDestroy()
When the touch interaction service is disconnected, let's make sure
we cleanup so we don't get in a state where all touches are ignored.

Bug: 72444652
Change-Id: I089ad63f9f855651f305c4650c99743d3bde3a94
2018-01-24 14:48:23 -08:00
Tony Wickham
eb1c9ea018 Merge "Simplifying/fixing logic for ignoring touches in quick scrub" into ub-launcher3-master 2018-01-24 21:52:29 +00:00
Tony Wickham
b4175d89ed Simplifying/fixing logic for ignoring touches in quick scrub
Now we directly set a static boolean as soon as we get the
onQuickScrubStart and end binder callbacks, instead of having
a member variable in QuickScrubController. Notably, QSC was
getting onQuickScrubStart() when doing quick switch, but not
onQuickScrubEnd(). This is a byproduct of some other unrelated
logic, which the new approach circumvents.

Bug: 72444652
Change-Id: I0a3d1ae2e9970cfffc38a25df0b8f04f26cb4cfa
2018-01-24 13:06:23 -08:00
TreeHugger Robot
aa6b1117b2 Merge "Check for permission before registering remote animations to prevent crash." into ub-launcher3-master 2018-01-23 22:30:08 +00:00
Jon Miranda
184b6444c3 Check for permission before registering remote animations to prevent crash.
Bug: 70220260

Change-Id: I2591fe05991f4d944a199acf82666df2cd7196ff
2018-01-23 14:18:12 -08:00
Jonathan Miranda
5bce66195b Merge "Use AllAppsTransitionController to animate the hotseat & scrim." into ub-launcher3-master 2018-01-23 22:15:43 +00:00
Jon Miranda
701b0f528e Use AllAppsTransitionController to animate the hotseat & scrim.
Bug: 70220260
Change-Id: I69bff4234c2fd0c76cb43cdd89342dcc04f2db40
2018-01-23 14:05:13 -08:00