Commit Graph

271 Commits

Author SHA1 Message Date
Vadim Tryshev
b09d25b26c Fade away half-screen assistant on swipe-to-recents gesture.
Half-screen assistant is not in task stack, and will be faded away.

Workspace-to-recents case with half-screen assistant needs more work
after we decide whether we should swipe to the workspace preview or to
the first task.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
half-screen assistant on top of it to Recents.

Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
2018-03-08 17:03:25 -08:00
Winson Chung
3e002f8275 Merge "Revert "Revert "Adding a separate state for QuickScrub""" into ub-launcher3-master 2018-03-05 20:11:18 +00:00
Winson Chung
ca84552505 Revert "Revert "Adding a separate state for QuickScrub""
This reverts commit 2687257c98.

Reason for revert: Reverting post-build

Change-Id: Ic3a1e8ed84a227b42bc35b91d4f0eed60bb2e29c
2018-03-05 19:39:25 +00:00
TreeHugger Robot
1e813b6781 Merge "Prevent adding tasks to the visible task list." into ub-launcher3-master 2018-03-05 19:08:34 +00:00
Winson Chung
b134331e3e Prevent adding tasks to the visible task list.
Bug: 74116831
Change-Id: Idc3a9d44350ad3b8aa274264473411782ba3a6e4
2018-03-05 10:59:04 -08:00
Winson Chung
7015eff870 Merge "Temporarily disable highres thumbnail loader." into ub-launcher3-master 2018-03-05 18:22:55 +00:00
Winson Chung
2687257c98 Revert "Adding a separate state for QuickScrub"
This reverts commit 6c6c2f45f7.

Reason for revert: Temporary revert for build.

Change-Id: I3947e9b2d4e5788f9d2a0c4e2e8b7d425d5bc775
2018-03-05 18:06:48 +00:00
Winson Chung
1ab7e377e6 Temporarily disable highres thumbnail loader.
Bug: 74116831
Change-Id: I812a1c774f1d0e5ce8299e1731d15a1b9c058e29
2018-03-05 09:58:44 -08:00
Sunny Goyal
6c6c2f45f7 Adding a separate state for QuickScrub
Bug: 74014237
Change-Id: Ie86ac589f0ad0e1470fb6b0b71263ec6593eb1e3
2018-03-02 15:38:21 -08:00
Tony Wickham
dd535466bf Don't show Pin option when an locked to app is active
Also isLockToAppEnabled is renamed to isScreenPinningEnabled

Bug: 72799389
Change-Id: I46d4c57e3719f7401887e79cbb7397e23f162e44
2018-03-01 12:43:17 -08:00
Sunny Goyal
6639a5dfe0 Updating the scrim and landscpae ui
> Instead of views, using a custom class to draw the color scrims
> All-apps has full screen UI
> Quickstep does not have search box in landscape

Bug: 73085356
Change-Id: I360a78a2ade0134daad29fe712796cd39a381fbb
2018-03-01 11:23:46 -08:00
TreeHugger Robot
43936eb05c Merge "Fixing generation of fake app-to-recents events" into ub-launcher3-master 2018-03-01 02:27:25 +00:00
Vadim Tryshev
4c1abea9cd Fixing generation of fake app-to-recents events
Due to some changes, Launcher started to generate these events also upon
pressing Home. Moving the generation to a right place triggered only
upon the app-to-recents transition.

Bug: 72967764
Test: atest google/perf/app-transition/app-transition-to-recents
Change-Id: I48e9450765474ed103e558b60ff5bf2b7d6b497d
2018-02-28 17:56:28 -08:00
TreeHugger Robot
4250557a81 Merge changes Ic23997f1,Id45c5381 into ub-launcher3-master
* changes:
  Enable trim memory callbacks to the loader, background task preloading
  Only load thumbnails for visible tasks.
2018-02-28 21:06:46 +00:00
Winson Chung
62a70be27a Enable trim memory callbacks to the loader, background task preloading
- Also enable the high-res thumbnail loader

Bug: 73651529

Change-Id: Ic23997f10289ea10cb1f41104e07029c9102c
Signed-off-by: Winson Chung <winsonc@google.com>
2018-02-28 12:55:19 -08:00
Winson Chung
cfc519d0a8 Only load thumbnails for visible tasks.
Bug: 73651529
Change-Id: Id45c5381c43b8c26447be5492c51af83cffe32a9
2018-02-28 12:54:00 -08:00
TreeHugger Robot
c06a7e137d Merge "Set disabled state when getting new icon from DrawableFactory." into ub-launcher3-master 2018-02-28 20:10:09 +00:00
Jon Miranda
d6aa658b6f Reduce launcher resume animation start delay from 150 to 100.
Bug: 70220260
Change-Id: I61c76a619841fc91d080b53190fd46aa20667e30
2018-02-28 08:19:30 -08:00
TreeHugger Robot
3e3e87e6aa Merge "Fix app opening transition for deep shortcuts." into ub-launcher3-master 2018-02-28 04:00:50 +00:00
Jon Miranda
93e9dbddc5 Fix app opening transition for deep shortcuts.
With this change, the floating view now starts on top of the
deep shortcut icon; before this change the view stared in the
middle of the text portion of the view.

Bug: 70220260
Change-Id: I7a1ed705f6f8d9d2ff594f52c4cf678aa0575012
2018-02-28 03:51:03 +00:00
Winson Chung
efa671294e Fix some issues with split screen animation
- Notify WM when the next draw after split screen happens
- Close the menu once we invoke split screen

Bug: 73118672
Change-Id: I9a42635f1f5c29e347bdec3034f6aa8be332c8d2
2018-02-27 16:52:32 -08:00
TreeHugger Robot
e01c217b3d Merge "Don't animate the workspace background alpha during recents anim" into ub-launcher3-master 2018-02-27 22:09:42 +00:00
Tony Wickham
270d6567cc Don't animate the workspace background alpha during recents anim
This is somewhat expensive and could cause jank

Change-Id: I75c2e957781c865e8d275ecc083e5edfa31e04d3
2018-02-27 13:55:35 -08:00
Tony Wickham
8168252567 Merge "Default swiping to N-1 task from home to true" into ub-launcher3-master 2018-02-27 19:50:50 +00:00
Tony Wickham
b7168cd019 Merge "Flip recents if setting is true" into ub-launcher3-master 2018-02-27 19:50:17 +00:00
Tony Wickham
30d0757278 Default swiping to N-1 task from home to true
Bug: 73854835
Change-Id: I585dc2f95e0abbffe45ef28b14268350aba5b9a9
2018-02-27 11:30:44 -08:00
Jon Miranda
d82c5cd2b0 Set disabled state when getting new icon from DrawableFactory.
Change-Id: Ic9c508d24cc0e65d45f5c1f4bcbe8d5cd7fb9200
2018-02-27 10:12:03 -08:00
Jon Miranda
b4047eb9da Fix transitions with disabled items and translucent activities.
- Floating view icon now matches the disabled state of the
  original icon.
- We only run the animator that hides the launcher content
  if launcher is in the set of closing targets. This avoids
  the flickering that occurs when the content fades out and
  then is visible again.

Bug: 73876918
Change-Id: Iddb7c8b8d74639e4ddf4044569d6f18256ff5eaa
2018-02-27 09:06:37 -08:00
Tony Wickham
dfb5cc9a09 Flip recents if setting is true
Bug: 72860694
Change-Id: I5cb71f553b2833a18a1b419b3744175bff963da8
2018-02-26 18:12:39 -08:00
TreeHugger Robot
7eadfc4f15 Merge "Ignore following touch actions if we didn't have window focus" into ub-launcher3-master 2018-02-26 23:42:51 +00:00
Tony Wickham
0639cd4097 Ignore following touch actions if we didn't have window focus
Previously we would ignore the down action, but then get the up if
window focus had changed (such as when hitting back to get rid of the
keyboard in all apps, which would launch the app in that position).

Bug: 73887575
Change-Id: I5405223982ef52633180ecd960a697af0d0b76d9
2018-02-26 15:25:11 -08:00
Sunny Goyal
2006ecfe78 Merge "Managing Assist data in the recents model" into ub-launcher3-master 2018-02-26 22:55:34 +00:00
Tony Wickham
5a22795484 Merge "Animate launcher when launching recent tasks" into ub-launcher3-master 2018-02-26 22:42:08 +00:00
Sunny Goyal
3746f1caa6 Managing Assist data in the recents model
Change-Id: I98acefbd1f82251e12fe2031f24d490db3e744f6
2018-02-26 14:20:43 -08:00
Tony Wickham
005df0ba69 Animate launcher when launching recent tasks
- Scale up adjacent recent tasks and translate away from center
  - Workspace card instead recenters in the screen
- Translate hotseat offscreen

Clicking on one of the adjacent tasks will scale it up to the
center of the screen while the center and other adjacent task
parallax to the right beneath it.

Change-Id: If96eec987c100458b8444a6cd698ec7bf6e6ba6b
2018-02-26 14:05:59 -08:00
Sunny Goyal
ee5de5d13d Merge "Using window touch slop for gesture instead of normal touch slop This would prevent intercepting taps on the home button" into ub-launcher3-master 2018-02-26 21:23:12 +00:00
Sunny Goyal
37bbe39dc0 Using window touch slop for gesture instead of normal touch slop
This would prevent intercepting taps on the home button

Bug: 73188263
Change-Id: Ic0085a9109ee9045da56c48a86a21cc023e57748
2018-02-26 12:25:52 -08:00
TreeHugger Robot
790822ab22 Merge "Ensuring that all the pending tasks are run before marking the ViewOnDrawExecutor as completed." into ub-launcher3-master 2018-02-26 19:10:40 +00:00
Tony Wickham
03f62371de Close task menu when clicking on its icon
Bug: 70294936
Change-Id: I1e774626c73b06d60da9b3be40d1ec80ac8eaa2d
2018-02-23 15:50:01 -08:00
TreeHugger Robot
33d1c3c0ea Merge "Normalizing icons in recents view" into ub-launcher3-master 2018-02-23 23:13:17 +00:00
Sunny Goyal
338d15d232 Normalizing icons in recents view
Change-Id: I1d95c1abf158044ca5666473f976b49f7997ca27
2018-02-23 12:26:25 -08:00
Sunny Goyal
a52d2eca83 Moving the hotseat by same amount as the task window bottom when dragging
Bug: 73354752
Change-Id: I7d20e718aab9bc9be75b4d536f1aa8b87c385caf
2018-02-23 10:12:07 -08:00
Sunny Goyal
0e7724cef7 Ensuring that all the pending tasks are run
before marking the ViewOnDrawExecutor as completed.

Also fixing model writer not updated on rotation

Change-Id: I5ecd7ac865b939ffa4c02afe892bd773d9f275c3
2018-02-22 17:27:13 -08:00
TreeHugger Robot
a12bd507d1 Merge "Adding some trace logging around RecentsController" into ub-launcher3-master 2018-02-23 01:23:40 +00:00
Winson Chung
a7843583be Fix flash when switching from app window to snapshot.
- If there is any delay in launcher draw, then we will finish the
  transition and hide the app window before launcher has had a chance to
  draw the task view with the updated snapshot.

Change-Id: I81c5b467f32520fd7474bde0e89819336292e84f
2018-02-22 16:42:44 -08:00
Sunny Goyal
8a7351fec6 Adding some trace logging around RecentsController
Change-Id: Ieb019d3d8c5f8540cba7b162f4c6f911d2005f5a
2018-02-22 16:32:46 -08:00
Sunny Goyal
5c86b5d9cd Synchronizing invalidating interaction handler with the eventQueue.
In some cases, eventQueue could be running on the background thread where as
the invalidate happens on the UI thread, which could cause race conditions in
touch consumer

Change-Id: Iebd84238eb2b5d6774beaa3bc21afdeb09e62561
2018-02-22 13:42:55 -08:00
Sunny Goyal
d70e75a514 Removing launcher dependency when logging quickstep interaction
as Launcher may not be ready when the touch gesture completes.

Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
2018-02-22 10:21:41 -08:00
TreeHugger Robot
668dd40a98 Merge "Fixing window transform not changing monotonically with shift" into ub-launcher3-master 2018-02-22 00:37:02 +00:00
Sunny Goyal
30897aaa1d Temporarily enabling various tracing for debug devices
Change-Id: Iebee7d0a4c408f50ab911b31edbec12499a42844
2018-02-21 15:58:40 -08:00