Commit Graph

11894 Commits

Author SHA1 Message Date
Tony Wickham
430bc2cd0d Merge "Rename LandscapeStatesTouchController -> OverviewToAllAppsTouchController" into ub-launcher3-master 2018-04-12 18:03:31 +00:00
Sunny Goyal
2998e43256 Merge "Listen for cases where touch controllers change, and update them" into ub-launcher3-master 2018-04-12 00:37:22 +00:00
TreeHugger Robot
a64b41eaf7 Merge "Don't allow swiping down on task to launch when swipe up is disabled" into ub-launcher3-master 2018-04-12 00:29:58 +00:00
Tony Wickham
ffbb5444bb Merge "Don't allow swiping down from overview in fallback recents" into ub-launcher3-master 2018-04-12 00:27:12 +00:00
Tony Wickham
a006830f0a Listen for cases where touch controllers change, and update them
Otherwise we'd be stuck using the old touch controllers until DragLayer
is setup again (e.g. launcher is killed).

Bug: 77921826
Change-Id: I8aac6fc453839902cb2d99279a6bd1549ee17d79
2018-04-11 17:25:40 -07:00
Tony Wickham
6c4eced65d Don't allow swiping down on task to launch when swipe up is disabled
Bug: 77921295
Change-Id: I6800f81a5f3edcbed2db1138375f78c5900c6cd4
2018-04-11 17:16:44 -07:00
Sunny Goyal
7eff40ff2d Several app transition fixes:
> If launcher already started, creating the state transition only after threshold crossed, so that previous animations are not cancelled
> Not posting animaiton callbacks at the front of the queue, as that sometimes causes it get executed before onNewIntent
> Farking the activity as forceInvisible while launching an opaque app, so that quickly pressing home/back runs the reverse animation
> Not running state animations when force-invisible is true

Bug: 77830325
Bug: 77898806
Change-Id: I50a7e915ca35fd6aeb284c8f321ecca74396fe98
2018-04-11 17:08:31 -07:00
Tony Wickham
23972338ac Rename LandscapeStatesTouchController -> OverviewToAllAppsTouchController
I find this less confusing, as the controller is also used in portrait
mode when swipe down is disabled.

Change-Id: Ifd6b4453a1b59e1f8305c1461d89ed99de2fe7d6
2018-04-11 17:06:06 -07:00
TreeHugger Robot
e9f31c1014 Merge "Using correct window bounds in multi-window for fallback activity" into ub-launcher3-master 2018-04-11 23:59:16 +00:00
Tony Wickham
6e3591469a Don't allow swiping down from overview in fallback recents
Bug: 77921295
Change-Id: I5a374bed865f03a715cb852e99c86c6e2e119273
2018-04-11 16:58:10 -07:00
Sunny Goyal
3477804c72 Using correct window bounds in multi-window for fallback activity
Also fixing a bug where insets were not updated when recreating deviceprofile

Bug: 77875376
Change-Id: I7806cf949da415ef171ccf2f4ab3e8f2b7606220
2018-04-11 16:43:18 -07:00
Winson Chung
2cb5bddd1c Merge "Reload the task list when multiwindow mode changes" into ub-launcher3-master 2018-04-11 23:32:29 +00:00
TreeHugger Robot
fc72493dd7 Merge "Fixing multi-window task sizes in Recents activity" into ub-launcher3-master 2018-04-11 23:12:50 +00:00
Sunny Goyal
76257f2535 Fixing multi-window task sizes in Recents activity
> In recents activity, getting the DeviceProfile size from the
root view, instead of the Display (as recents activtiy can be resized)
> The task size in Recents activity is now proportional to the activity
size instead of 50% screen size

Bug: 77875376
Change-Id: Ib417c31fc7ec8569876368134ef021452d60aa12
2018-04-11 13:51:10 -07:00
Mehdi Alizadeh
e833bf3ef5 Adds ContentObserver for Swipe Up enabled setting
Registers a ContentObserver to handle Swipe Up gesture enable/disable
changes from Settings App. Also provides a static method to get the
current state of settings for the Swipe Up feature.

Bug: 77549883
Test: Manual Test
Change-Id: I5aa13cebdcb78be4869e8a5ae7f570490c8ac05c
2018-04-11 20:28:20 +00:00
Winson Chung
1a77c3dce1 Reload the task list when multiwindow mode changes
Bug: 73097187
Change-Id: I05d8635f78451600cbb8a9c03515e60d3c32e1ae
2018-04-11 13:26:21 -07:00
TreeHugger Robot
f4dfac94fa Merge "Waiting until post draw before calling finish on the recent transition" into ub-launcher3-master 2018-04-11 19:59:08 +00:00
Sunny Goyal
fceb82d4a7 Waiting until post draw before calling finish on the recent transition
Bug: 77695434
Change-Id: I7c3c668de7c3986760f26890fa062dee0ddb3805
2018-04-11 12:50:46 -07:00
Tony Wickham
d7fd83a8e7 Merge "Add haptic when entering quick scrub" into ub-launcher3-master 2018-04-11 18:41:01 +00:00
Tony Wickham
8e26fe9ae9 Add haptic when entering quick scrub
Bug: 77905939
Change-Id: Iaf16c0de9bc82ed903151c6782781a1487bfe922
2018-04-11 16:58:19 +00:00
Sunny Goyal
eeb084cb4b Handle configuration changes in fallback activity
Change-Id: I1b6dd28ab3766948a7613192d0283689707c73a4
2018-04-10 17:20:46 -07:00
Sunny Goyal
f62a69b43b Do not change page as a result of showOverview command
Bug: 77723744
Change-Id: I7166e8da36c700cd66bbe4c20bf8618926c65b9c
2018-04-10 14:28:31 -07:00
Winson Chung
32d5be0285 Merge "Close system windows when starting the swipe up gesture." into ub-launcher3-master 2018-04-10 21:20:50 +00:00
TreeHugger Robot
367cab48ba Merge "Adding some utility callbacks in TaskOverlayManager" into ub-launcher3-master 2018-04-10 20:51:10 +00:00
Winson Chung
96cf14317a Close system windows when starting the swipe up gesture.
Bug: 77725504
Change-Id: If8ca7f8b192d365c06f30fe33d108a88378a9d2d
2018-04-10 20:44:30 +00:00
Sunny Goyal
2d6208065a Adding some utility callbacks in TaskOverlayManager
Change-Id: Id2ef8f1c2bf4c6eab4170c32cfafad0b448e63db
2018-04-10 13:32:56 -07:00
Tony Wickham
6cf86a37ea Make a copy of DeviceProfile before updating its insets
Change-Id: Ic0fb6dd103ac7af810373c8454cb0bad84e7fddd
2018-04-10 10:58:47 -07:00
Winson Chung
71ba448671 Tweak button animation to be closer to what we had before.
Bug: 77152886
Change-Id: Ibd70eeee8c9de78e6e0b996ed082f701171ce934
2018-04-09 21:04:47 -07:00
Sunny Goyal
82d2074cd2 Merge "Do not reset the previous state animation, if it is a part of the new state animaiton" into ub-launcher3-master 2018-04-10 03:02:02 +00:00
Tony Wickham
97b658f289 Merge "Can now swipe away to dismiss second task" into ub-launcher3-master 2018-04-10 00:13:05 +00:00
Sunny Goyal
68c47c5620 Adding task open animation in fallback activity
Change-Id: I9a861cc4162b98c067061afad42631dc4fa0e3e2
2018-04-09 17:03:41 -07:00
Sunny Goyal
b35f50cf55 Do not reset the previous state animation, if it is a part of the new state animaiton
Change-Id: Ic433db8cd2b0701923185d0a2db2a4361567437f
2018-04-09 16:31:12 -07:00
Tony Wickham
52c7b8c6ac Can now swipe away to dismiss second task
Previously we only allowed dragging the forefront task. Now you can
swipe up to dismiss the second task as well, but can't drag it down to
launch.

Also cleaned up page-scroll-while-dismissing logic to ensure it works
correctly in RTL and for new cases with dismissing adjacent pages.

Bug: 73187449
Change-Id: I1fe873c4cf1380b951dd3b2e396ab401ca1f7470
2018-04-09 16:04:21 -07:00
TreeHugger Robot
5515600732 Merge "Automatically switching the ActivityController based on the default home app preference" into ub-launcher3-master 2018-04-09 21:49:51 +00:00
Sunny Goyal
681bab045a Fallback recents activity fixes:
> Always deferring the start activity call
> Fixing quickscrub when start activtiy is deferred
> Preventing finish() call on the activity
> Fixing initTrack to work when the activity already exists

Bug: 75979063
Change-Id: Id6038c1f6c2680ec920222fb6a85c0ecc0172ed4
2018-04-09 14:18:39 -07:00
Sunny Goyal
59f2094dd6 Automatically switching the ActivityController based on the default home app preference
Bug: 75979063
Change-Id: If7a173cc56da021094ab9770dee26fb61ac20dd3
2018-04-09 13:25:50 -07:00
Sunny Goyal
38d2bf3504 Merge "Making QuickScrub work, when the fallback activity is on top" into ub-launcher3-master 2018-04-09 17:36:43 +00:00
TreeHugger Robot
a4e8763d11 Merge "Updating the card size logic" into ub-launcher3-master 2018-04-09 17:20:31 +00:00
TreeHugger Robot
eec189c0fc Merge "Removing Launcher assumption from OverviewCommand, so that it works with fallback activity" into ub-launcher3-master 2018-04-09 17:20:29 +00:00
Sunny Goyal
df336cf685 Making QuickScrub work, when the fallback activity is on top
Bug: 75979063
Change-Id: If8029901ad1f99551b3eba74620616edf6f993ef
2018-04-09 10:06:03 -07:00
Sunny Goyal
926ba83726 Elevate GPU priority of Launcher3Quickstep
Bug: 75985430
Change-Id: I4ac70c76db98b4ab666b0559f3185392142be045
2018-04-09 09:23:28 -07:00
Jorim Jaggi
f4beeb8dfb Enable early wakeup during transitions
We hit GL comp likely on some devices so we start composing
earlier to avoid jank.

Bug: 75985430
Change-Id: I94ff218c79fb512002a2fb7f8aa600d6662f269e
2018-04-09 16:45:06 +02:00
Tony Wickham
9ae484b95d Merge "Log dismissing or launching recent tasks" into ub-launcher3-master 2018-04-06 22:55:50 +00:00
Tony Wickham
3541ac10a1 Merge "When dragging past first or last state, don't reinit target" into ub-launcher3-master 2018-04-06 22:51:06 +00:00
Tony Wickham
9bd862e588 Log dismissing or launching recent tasks
We now pass the log action (e.g. SWIPE or FLING) to the pending
animation, so that the end listener can log appropriately. This
is used when swiping down or up on a task, for example.

Bug: 73783784
Change-Id: I5c2eee24e8b23cf4af68d503d3435a6d8088dd8a
2018-04-06 15:41:39 -07:00
Tony Wickham
6270a0ea18 When dragging past first or last state, don't reinit target
Example bug:
1. Swipe up to overview and let go
2. Swipe all the way to the top of the screen, past where all apps stops
3. Swipe down

Before this change, you get reset in NORMAL state instead of OVERVIEW.

By ensuring that getTargetState() checks the drag direction before
returning a new state, we guarantee we only re-init in the case that the
state is actually changing. Otherwise it's possible to change the state
to one that is impossible, such as NORMAL when swiping up from ALL APPS.

Change-Id: I19913dded9c94228d06289780b6400e99403f378
2018-04-06 14:32:18 -07:00
Tony Wickham
a4984f3df8 Merge "Ignore touch events on task view when menu is open" into ub-launcher3-master 2018-04-06 19:29:22 +00:00
Sunny Goyal
d792a77234 Updating the card size logic
In full screen always follow the device aspect ratio
In multi-window, follow the 1:1 split window size
Rotate the screen shot only in full-screen mode

Bug: 70289009
Change-Id: Id5095565634d4d7920fefa929b28276db80bda5f
2018-04-06 11:29:32 -07:00
Sunny Goyal
0635de29a9 Removing Launcher assumption from OverviewCommand, so that it works with
fallback activity

Bug: 75979063
Change-Id: I3a851f6ce4725cee590eac9004eff1180f3780bb
2018-04-06 08:44:03 -07:00
Tony Wickham
f3c10bf15f Ignore touch events on task view when menu is open
For example, long pressing icon and then dragging in the same motion
should be ignored

Bug: 77652647
Change-Id: I9cc53c2873950f216d51d90f749b3cc0d0744d3c
2018-04-05 18:44:26 -07:00