Commit Graph

14731 Commits

Author SHA1 Message Date
Sunny Goyal
bf6dfc5fa7 Fixing ANR when using quickscrub from homescreen
Change-Id: Id355726f7ec72dc2fd28a3e757355d1143464001
2018-02-13 17:17:48 -08:00
Sunny Goyal
66f2b35320 Adding a utility class to simplify main process initialization.
Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
2018-02-13 17:08:09 -08:00
TreeHugger Robot
a0693d6366 Merge "Defer starting the recents animation when swiping over back button" into ub-launcher3-master 2018-02-14 00:56:32 +00:00
TreeHugger Robot
450d821f48 Merge changes I2130e01c,I3f864ff4 into ub-launcher3-master
* changes:
  Re-enable input consumer to catch touches over window
  Cancel the animation when cleaning up the touch tracking
2018-02-14 00:43:14 +00:00
Winson Chung
d56ac2a881 Defer starting the recents animation when swiping over back button
Bug: 73242451
Test: Swipe up over back with suitable launcher build and ensure that we
      don't start the recents animation on touch down

Change-Id: I98314611eaeeabfaa47280157300ea20f0571a61
2018-02-13 16:41:32 -08:00
Winson Chung
cc394cdc75 Re-enable input consumer to catch touches over window
- No handler at the moment, it just ignores touches

Change-Id: I2130e01c0515298433b5fbde835dfe97864038c9
2018-02-13 16:31:36 -08:00
Winson Chung
c2ef02ee15 Cancel the animation when cleaning up the touch tracking
Bug: 72953248
Test: Add artificial delay and launch home from home button
Change-Id: I3f864ff4e0a90a4c62dbf5fe123bb3e2257c06fa
2018-02-13 16:31:31 -08:00
Tony Wickham
d766aadae7 Fix scrolling to first task on swipe up for RTL
Change-Id: I4f316bd6da7e7d370928accb41e1b44a689094af
2018-02-13 12:03:37 -08:00
Tony Wickham
d91c3f47c1 Merge "Allow quick scrub/switch from minus one" into ub-launcher3-master 2018-02-13 17:51:20 +00:00
Tony Wickham
618a5044cf Allow quick scrub/switch from minus one
Launcher's window doesn't have focus when on minus one. In this case, we
tell the minus one overlay to hide and add a window focused callback to
start quick scrub/switch after launcher regains focus. Since the
transition from minus one takes longer than for launcher to get window
focus, we also defer until the overlay is completely hidden before
starting the quick scrub transition.

Bug: 70180755
Change-Id: Ifcf85aaf1942b51394e68e209b89807fa4007afe
2018-02-13 08:18:57 -08:00
TreeHugger Robot
ba747b6f19 Merge "Skip Launcher opening animation if its not in the set of opening apps." into ub-launcher3-master 2018-02-13 01:50:09 +00:00
Tony Wickham
aefd062125 Merge "Re-enable quick scrub/switch from launcher" into ub-launcher3-master 2018-02-12 23:58:25 +00:00
Bill Yi
2fd04c2def Import translations. DO NOT MERGE
Change-Id: Ibfab0e5e1709f527c4fa4fcae33522bf47826b25
Auto-generated-cl: translation import
2018-02-12 12:18:27 -08:00
Tony Wickham
a066e4434b Re-enable quick scrub/switch from launcher
When we get the onQuickScrubStart() or onQuickSwitch() callbacks, we go
to the overview state with a quicker duration (the same used from apps).
Then we follow the same logic as starting quick scrub/switch from apps
except that we allow you to scrub back to the workspace card.

Bug: 70180755
Change-Id: Iebcdcc4c4ad1e1210e2d1c11e5007c27d3c1eef3
2018-02-12 11:46:40 -08:00
Tony Wickham
62388becd0 Merge "Move window to align with first task during quick scrub" into ub-launcher3-master 2018-02-10 02:02:54 +00:00
Tony Wickham
8cb3002619 Move window to align with first task during quick scrub
Bug: 70180755
Change-Id: I5932462bd1af08ec141518a344c60605b8730d9d
2018-02-09 17:27:40 -08:00
Sunny Goyal
72289860ee Fixing workspace card shifted when going to home.
When animating the wrospace, we skip the properties if for start and end are same.
But after creating the animation, if the property changes, the final property is
never applied.

Bug: 72257542
Change-Id: Id408c7820476273958e835ae99a3a934ad5a4700
2018-02-09 16:04:44 -08:00
Winson Chung
05a31ede4f Defer launching the quickscrub task until after the page settles
- Tweak the durations to be less laggy
- Add some state logging

Bug: 67957962
Bug: 70180755
Change-Id: Ia0caa5178b3ed976705eb2d973bc00d8f1b9e3ca
2018-02-09 12:43:36 -08:00
Winson Chung
006239bab9 Fix blocking issues re. window transitions and quick scrub
- Clean up the consumer when starting quickscrub/switch in addition to
  motion up
- Defer invalidating the handler until after quickscrub ends
- Ensure that we always finish the remote animation

Bug: 67957962
Bug: 70180755

Change-Id: Id5af5dc9917638f1dfb8e4a04c358aadb19fd67a
2018-02-09 12:42:13 -08:00
Winson Chung
3e803c7a4b Animate the visible task view if launching an app that resolves to the task
Test: Manual, launch app for associated visible task
Change-Id: I7a56553197ad23e1269eb50523eca0ea88898f47
2018-02-09 12:40:10 -08:00
TreeHugger Robot
7780fa7bc7 Merge "Prevent blinking when user presses home." into ub-launcher3-master 2018-02-08 03:48:56 +00:00
Jon Miranda
0d5daafd2f Prevent blinking when user presses home.
Intead of finishing the entire animation (launcher animation and
window animation), we finish just the launcher animation.

Bug: 73071035
Change-Id: Ied84cb641f3cedc367433ad99d21ab1b258ae7f8
2018-02-07 17:41:22 -08:00
Jon Miranda
ce29861598 Use DrawableFactory to get icons for animation.
* This ensures that the current time is used for the clock icon.
* Also switch from ImageView to View, to avoid an alpha bug.

Bug: 73000086
Change-Id: I6576d76b95fb157d0bfe8db4fda899e644773bfa
2018-02-07 17:37:24 -08:00
Sunny Goyal
168ca694f9 Merge "Adding callback to notify LauncherCallbacks when quickstep starts" into ub-launcher3-master 2018-02-07 23:14:58 +00:00
Winson Chung
2fda6ced2a Handle transition from multi-window
- Make use of app/home insets and minimized home size to calculate the
  proper clipping and target bounds for the task view in home.

Test: Swipe up when in multiwindow

Change-Id: Ibef7a6dc319ded7867ee559dd31c5e87fd76cadb
2018-02-07 14:56:24 -08:00
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