Commit Graph

78507 Commits

Author SHA1 Message Date
Sunny Goyal 2c3eafcb26 Defining an action for touch service so that the component name does not
need to be hardcoded
Also preventing the service behind system permission

Change-Id: Ibb3f0d8115b2355b2f5b5ee991858f6377037e45
2018-03-01 10:57:54 -08:00
Sunny Goyal f58e0df0ab Skipping resetting transition if the same transition is running
Bug: 73838765
Change-Id: I1a428f1b5d5b04397a317e0f35f3effb53c24405
2018-03-01 10:25:55 -08:00
Derek Sollenberger 26a1b452f4 Stop using deprecated Canvas APIs.
Bug: 73777445
Test: compile
Change-Id: Ic0a1f4ebc10ba46229fd97408c052c0b450b4945
2018-03-01 04:39:57 +00: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
Sunny Goyal 2e2e2b4a63 Fixing widget label not being rendered in multi-window mode
Bug: 73709754
Change-Id: Id6342e3412c2b247e052bc45c01a484422a7c011
2018-02-28 17:34:23 -08:00
Mario Bertschler dd2424296a Fix for floatingheader snap value being higher than the max
translation if flinging quickly the all-apps recycler view.

Bug: 73151273
Change-Id: If7acbf7b48f69ea6a818a83d519049496b86ced3
2018-02-28 14:16:38 -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
TreeHugger Robot a655a4a83a Merge "Fixing widgets get deteled because of double bind" into ub-launcher3-master 2018-02-28 17:36:38 +00:00
TreeHugger Robot 39ba08fb0d Merge "Reduce launcher resume animation start delay from 150 to 100." into ub-launcher3-master 2018-02-28 17:33:46 +00:00
TreeHugger Robot 909267996e Merge "Deprecate work folder" into ub-launcher3-master 2018-02-28 17:32:52 +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
android-build-team Robot 71e7079d52 Snap for 4625912 from 0af5f19024 to pi-release
Change-Id: I2bfa27b8de454dfef185d318ab4b1f19dc215e4d
2018-02-28 08:26:23 +00: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
Sunny Goyal c11fac355d Fixing widgets get deteled because of double bind
If the AppWidgetHost starts listening in the middle of bind, it rebinds
the old widgets before a new widget is bound, leading to double bind.
We should clear all pending binds, before starting a rebind. As an
extra check only rebind a view which is attached to the screen.

Bug: 73814840
Change-Id: Ie3af683dc4095b158547e700d11e4faf7999466f
2018-02-27 19:23:01 -08: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
TreeHugger Robot c847ca4537 Merge "Adding temporary logs to capture configuration changes and item deletions" into ub-launcher3-master 2018-02-27 21:30:13 +00:00
Sunny Goyal 2bba1900e0 Adding temporary logs to capture configuration changes and item deletions
Bug: 72481685
Bug: 73814840
Change-Id: I1e30632647ad08a08d84c49875bc7b6cac3be1fb
2018-02-27 13:20:57 -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 0af5f19024 Merge branch 'ub-launcher3-master' into master
Bug: 73327733
Test: manual test
Change-Id: Id2211340155ebea35a2adc04b6f41237911e9856
2018-02-27 13:51:09 -05:00
TreeHugger Robot fe560d802a Merge "Update widget full sheet / bottom sheet to have top rounded corners." into ub-launcher3-master 2018-02-27 18:34:27 +00:00
Jon Miranda d82c5cd2b0 Set disabled state when getting new icon from DrawableFactory.
Change-Id: Ic9c508d24cc0e65d45f5c1f4bcbe8d5cd7fb9200
2018-02-27 10:12:03 -08:00
TreeHugger Robot f1e9a706f6 Merge "Use getScaledTouchSlop instead of MIN_LENGTH_FOR_FLING" into ub-launcher3-master 2018-02-27 18:07:23 +00:00
TreeHugger Robot ba61934e16 Merge "Fix transitions with disabled items and translucent activities." into ub-launcher3-master 2018-02-27 17:58:29 +00:00
TreeHugger Robot 678fe6dbb8 Merge "Update the user education text as the badge is no longer in orange" into ub-launcher3-master 2018-02-27 17:56:25 +00:00
Tony Mak 1b6826c53c Deprecate work folder
FIX: 73876183

Change-Id: I9d15df247eed3500c679cba085c680b75581cffb
2018-02-27 17:47:22 +00:00
Tony Mak 9a026e7672 Update the user education text as the badge is no longer in orange
Change-Id: Ic13b86bed50356a1e01e01ad350e5f9882845b69
FIX: 73944227
2018-02-27 17:38:08 +00:00
Tony Mak 2e564400ba Fix all apps tab fling detection
It is a regression when we changed from ViewPager to PagedView.
Unlike ViewPager, PagedView does not take "yDiff" into account
when determining should it intercept its child MotionEvent.

Override determineScrollingStart, just like what we did in Workspace

Change-Id: I25f7415c45c370629558d944f59bf95c741b9319
FIX: 73878167
2018-02-27 17:29:12 +00: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 Mak c25afd002b Use getScaledTouchSlop instead of MIN_LENGTH_FOR_FLING
MIN_LENGTH_FOR_FLING is not correct because it is not scaled
based on density.

BUG: 73878167
Change-Id: Ibbb58a573976224f33fd43de33719ddb62131329
2018-02-27 14:44:50 +00: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 Mak d814b1cdf2 Merge "Bump version of IconDB to roll out the new work profile badge" into ub-launcher3-master 2018-02-26 18:32:22 +00:00
Sunny Goyal b3e4aa5c23 Merge "Fix link-type check warning on libSharedSystemUI" into ub-launcher3-master 2018-02-26 17:48:44 +00:00