Commit Graph

6741 Commits

Author SHA1 Message Date
Tony Wickham
663759e444 Remove back button when on home screen
Add OverviewInteractionState to handle setting OverviewInteractionFlags.

Hide back button when in NORMAL state and launcher's window is focused.
Show it when in other states or when launcher's window loses focus.

Change-Id: I35919561b9972789e995f1cc434c23e2afe9e77c
2018-02-15 12:20:16 -08:00
Winson Chung
9004912eaa Prevent rotation during quickscrub gesture.
Bug: 73486148
Change-Id: Ia435608484e49daf93ff4aa675da11ea4f0fd421
2018-02-15 11:35:37 -08:00
Sunny Goyal
c36d6eefae Temporarily disabling model preloading
Bug: 73399920
Change-Id: Ia4a93c77a3209c6a9b2baae02a3ee3d6abb693d4
2018-02-14 20:46:31 -08:00
TreeHugger Robot
1672549d9f Merge "Fixing crash when window is not attached" into ub-launcher3-master 2018-02-15 00:28:32 +00:00
Sunny Goyal
1e9da8b5aa Fixing crash when window is not attached
Bug: 72233154
Change-Id: Ibe94f5804be85b0df9180c508e4ae7afe3ba9a1a
2018-02-14 16:17:01 -08:00
Vadim Tryshev
51fc778eea Fixing “Transition Delay - App to Recents” test: the Launcher part
The fix is quite hacky and should be re-done soon. I’m not leaving TODOs
in the code, but I’m tracking the cleanup elsewhere.

We also need a fix in the server to make the test work, but that will be
another CL.

Bug: 72967764
Test: atest google/perf/app-transition/app-transition-to-recents
Change-Id: Ia21c308caa81bd5502f4a4587ae445928f6eca17
2018-02-14 14:48:47 -08:00
Winson Chung
4c021ee1bc Temporarily disable back button deferral of start animation.
Bug: 73356768
Change-Id: I156b0e6db0ac51a325a3a76118ce8efd01e50419
2018-02-14 13:13:41 -08:00
Winson Chung
db3a95c956 Reset the interaction handler if it hasn't been recreated.
Bug: 73356768
Change-Id: Ie3236c95cdb8d9ce809bf8651e02d1d803f0b802
2018-02-14 13:06:14 -08:00
Winson Chung
ff02cd54d4 Skip updating displacement if handler is already invalidated.
Bug: 73338391
Change-Id: I091e8a682f95631e15b3f2cbe3e281c4f18003b9
2018-02-14 09:16:26 -08:00
TreeHugger Robot
f6c65d7e54 Merge "Fixing ANR when using quickscrub from homescreen" into ub-launcher3-master 2018-02-14 01:29:50 +00:00
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