Commit Graph

937 Commits

Author SHA1 Message Date
TreeHugger Robot
730155ea09 Merge "Fix bug where floating view is removed before window animation is complete." into ub-launcher3-edmonton-polish 2018-06-20 18:46:33 +00:00
Jon Miranda
53246e5fdc Fix bug where floating view is removed before window animation is complete.
This fix attaches the AnimatorListenerAdapter on the parent AnimatorSet
to ensure all animations are complete before removing the floating view.

Bug: 110156760
Change-Id: I56638d745227e414583fa47a202c9aaa33874baa
2018-06-19 16:13:10 -07:00
Tony Wickham
c0b468c990 Merge "Don't intercept above shelf progress if still animating" into ub-launcher3-edmonton-polish 2018-06-19 22:04:17 +00:00
Santiago Etchebehere
257b9c1ac1 Reapply the change to not clip recents
Redo the fix from ag/4326104 as it got removed when reverting
the overscroll fix in ag/4358154

Change-Id: I87d186cbf7675948f4cd5d8aa1a907db1aad5ea0
2018-06-18 10:18:23 -07:00
Santiago Etchebehere
260b4cbd90 Revert "Adding overscroll effect in recents list"
This reverts commit 4d6b1a95a1.

Bug: 110279118

Change-Id: I794b2c7af076d63901f2286fd2ff3d06c6e39fee
2018-06-15 23:55:03 +00:00
Sunny Goyal
32b2896e6f Allowing taskView to have focusable children (using taskOverlays)
Bug: 110271905
Change-Id: Ie75a680efa61d3ded6142ff4e65198a704603639
2018-06-15 21:04:18 +00:00
Tony Wickham
a32b6a1d37 Merge "Add padding between hotseat and insets in multiwindow landscape" into ub-launcher3-edmonton-polish 2018-06-14 16:27:18 +00:00
Tony Wickham
1eeffbee01 Add padding between hotseat and insets in multiwindow landscape
Right now there's almost no room between the hotseat icons and the
nav  bar in this mode, and it looks kind of bad. It also causes
b/109946631 which is fixed by this change.

Also fix placement of popup in RTL landscape (was incorrectly inset)

Bug: 109946631
Change-Id: I324485da0048b907776b16b719b631c5314e5696
2018-06-13 12:37:47 -07:00
Jorim Jaggi
fca9eec464 Optimize system bar switching animations
- Fix a bug where the wrong time was used when the activity was in
overview, but overview wasn't actually visible.
- Fixing this looks pretty bad. Introduce a pre-delay since our
animations decelarate heavily at the end.
- Consolidate logic between swipe-up and swipe-down. Take a middle
value that is most in line with the other animations.

Test: Open/close apps from home and recents with and without
swiping.
Fixes: 109906294

Change-Id: I9cd5568c60fe7281d0f71a75981a3003770e659e
2018-06-13 14:44:18 +02:00
Matthew Ng
59ffaf035d Fixes the task header view location in landscape
The header was off by forgetting to calculate with insets. Also rtl
needed to start from left to do calculations correctly.

Test: start overview in landscape, press icon of task
Change-Id: I561dbe315c7be0b4dee602bfd17b4abfffa55605
Fixes: 110096772
2018-06-12 13:52:50 -07:00
Sunny Goyal
b0e4126ad0 Do not clip recents view as it scales down to reveal more content
Change-Id: Icc26dec5fc4d6b19d22eb975628de3856f2ea471
2018-06-12 10:02:44 -07:00
Sunny Goyal
267d04f79b Merge "Adding overscroll effect in recents list" into ub-launcher3-edmonton-polish 2018-06-12 16:56:02 +00:00
Tony Wickham
fe1402d8a4 Merge "Fix some issues with haptic" into ub-launcher3-edmonton-polish 2018-06-12 15:55:30 +00:00
TreeHugger Robot
90edc36dd9 Merge "Dismiss task menu view after pinning from tapping menu item" into ub-launcher3-edmonton-polish 2018-06-11 23:56:09 +00:00
Sunny Goyal
4d6b1a95a1 Adding overscroll effect in recents list
Bug: 109828536
Change-Id: If2b65cfc2b7f14deb721436f7aa378c4a2c5c468
2018-06-11 16:42:37 -07:00
Tony Wickham
29aef52be3 Fix some issues with haptic
- Don't have double haptic on quick scrub
- Correctly check interpolated progress to determine final state,
  so that it always aligns with the haptic (i.e. passing the haptic
  means letting go will go to the new state)

Bug: 109709720
Change-Id: I702bb76a4c15f932f923e81a14cc49f6a9126cb8
2018-06-11 23:23:49 +00:00
Sunny Goyal
c82c6396e9 Moving clear all button inside the recents view
Bug: 72222505
Bug: 109828536

Change-Id: I843b79db3e47abc2c41ed78f186b9c941941ddef
2018-06-11 13:51:03 -07:00
Matthew Ng
89da6799e4 Dismiss task menu view after pinning from tapping menu item
OnClickListener for pin menu option will close all floating views such
as the task menu view.

Test: launch a transparent app, swipe up and try to pin it
Change-Id: I0a3253c79fd543e6044037835ffd74777c76a17d
Fixes: 109678966
2018-06-11 11:49:20 -07:00
TreeHugger Robot
367a53ec13 Merge "Added haptic feedback when swipe/fling up from an app in fullscreen" into ub-launcher3-edmonton-polish 2018-06-11 17:57:38 +00:00
Matthew Ng
c4b75abf3b Added haptic feedback when swipe/fling up from an app in fullscreen
This includes swiping/fling up from a fullscreen app and swiping/fling
down a task to a fullscreen app.

Test: swipe up when app is fullscreen
Fixes: 80543530
Change-Id: Iee259284cc6d4fe1e784532f0822ffd38cdee280
2018-06-11 10:45:47 -07:00
Sunny Goyal
0f3af75eb0 Making the self always follow the vertical progress without any min height limit.
After a certain height, the self fades out, but keeps following the vertical progress.

Eventually the fade-out can be decoupled from vertical progress and tied to the state

Bug: 109829614
Change-Id: I9808ed3fa1730b938196bc6d3518a6d096a13f4c
2018-06-11 09:51:42 -07:00
TreeHugger Robot
808e7cae66 Merge "Changed the Task Menu to overlay on top of the task view" into ub-launcher3-edmonton-polish 2018-06-08 23:59:21 +00:00
Sunny Goyal
03f17fabf0 Fixing build breakage due to theme change
Change-Id: I0d1f1b69a5dbde0cccfdcb925495018ee82403bd
2018-06-08 15:23:17 -07:00
Matthew Ng
1b9c3d6fe3 Changed the Task Menu to overlay on top of the task view
When tapping the icon for each card in overview, the options will
overlay on top of the task view below the icon instead of popping up
above the task view.

Change-Id: I42746022432385d976134988262514a238a5066e
Fixes: 109676098
Test: go to overview, tap the icon for the task
2018-06-08 14:24:22 -07:00
Winson Chung
1cabec12ea Merge changes from topic "am-6122ccdb-5b5a-43f4-8f32-3d9e1a775ee9" into ub-launcher3-edmonton-polish
* changes:
  [automerger] Set correct target position for other targets am: 707c09d3e3
  Set correct target position for other targets
2018-06-08 19:19:29 +00:00
Tony Wickham
15852dc121 Merge "Track shelf rather than app window" into ub-launcher3-edmonton-polish 2018-06-08 18:32:38 +00:00
Tony
89126653cd Don't intercept above shelf progress if still animating
When you swipe up to overview from home, we should allow touches on
recents even if the overshoot animation isn't finished. If the
touch is below the all apps progress, we continue to intercept to
allow for double swipe up.

Bug: 80093992
Change-Id: Ifdca61e7cfc1f7a713c067596cc0c1bd3154b44e
2018-06-07 20:48:04 -07:00
Tony
7f300e3dff Track shelf rather than app window
Change swipe length to be the height of the shelf rather than the distance
to the bottom of the task in recents. The shelf already uses this distance
to determine its starting offset, and the window uses it to determine how
fast to move. So by setting the distance to the height of the shelf, we
effectively make the window move slightly faster and the shelf move directly
under your finger.

Bug: 109817942
Change-Id: I9b20bbed58cccc6f74aba36000a6ca272f9d554d
2018-06-07 18:23:19 -07:00
Android Build Merger (Role)
53d57998c1 [automerger] Revert workaround for missing frame callback am: 2ad2859f1e
Change-Id: Ie92ada3a301bad9cf0cdd355285503f656c8a125
2018-06-07 22:23:56 +00:00
Winson Chung
2ad2859f1e Revert workaround for missing frame callback
Bug: 109701914
Test: Long swipe from an app and ensure the app window is hidden
Change-Id: Ice2978687e2049d5cfb20f3f7ce93906246c30b6
2018-06-07 22:23:54 +00:00
Tony Wickham
d968bdbc25 Merge changes from topic "am-6d9ca486-65ce-4826-896a-aaf2c33186f9" into ub-launcher3-edmonton-polish
* changes:
  [automerger] Reapply back button alpha at end of state animation am: 5273b695c2
  Reapply back button alpha at end of state animation
2018-06-07 21:41:16 +00:00
Sunny Goyal
13c69a6251 Merge changes from topic "am-b4ccc74b-9fac-466f-997f-63416774e49c" into ub-launcher3-edmonton-polish
* changes:
  [automerger] Do not execute controller callbacks, if controller is null am: aa168d5c11
  Do not execute controller callbacks, if controller is null
2018-06-07 20:57:41 +00:00
Android Build Merger (Role)
ac5a07cb59 [automerger] Reapply back button alpha at end of state animation am: 5273b695c2
Change-Id: Ic83348b0559743b334c5989d014987f144c390f1
2018-06-07 18:48:57 +00:00
Tony
5273b695c2 Reapply back button alpha at end of state animation
We determine the toAlpha at the start of the state change, but something
may happen (e.g. we lose window focus) during the transition. So to make
sure we don't end in a state with the wrong alpha, reapply at the end.

Bug: 109835691
Change-Id: I271a1d269f861f698efbb8e66148a924c8620e71
2018-06-07 11:46:16 -07:00
Android Build Merger (Role)
a4785c9a3f [automerger] Do not execute controller callbacks, if controller is null am: aa168d5c11
Change-Id: I00471a292a30f1a500a36007486e68035380e4ac
2018-06-07 18:08:00 +00:00
Sunny Goyal
aa168d5c11 Do not execute controller callbacks, if controller is null
Bug: 109812478
Change-Id: I55adc276fd894dd5f8913483984266327d7d482b
2018-06-07 11:07:53 -07:00
Android Build Merger (Role)
87c1a14ef1 [automerger] Reset the UI to the proper state, if we start the swipe-ui gesture from an inconsistent state am: a04c779f86
Change-Id: Ie8c72e058f35e4fce566b1751737de48b987ffe0
2018-06-07 17:46:53 +00:00
Sunny Goyal
a04c779f86 Reset the UI to the proper state, if we start the swipe-ui gesture from an
inconsistent state

Bug: 109583168
Change-Id: I451c66bf7643b7c1791c26b5862ca9f7a020f7be
2018-06-07 10:46:39 -07:00
Android Build Merger (Role)
8c7e5cb111 [automerger] Set correct target position for other targets am: 707c09d3e3
Change-Id: I953aaf62740e0e9408cde6a5a337e6f2a1f96be4
2018-06-07 14:40:54 +00:00
Jorim Jaggi
707c09d3e3 Set correct target position for other targets
Test: Open/close app in split screen
Bug: 109867619
Change-Id: Ice2325e1be2f45c135e1beca63a16afed2d21644
2018-06-07 16:40:18 +02:00
Android Build Merger (Role)
34838cf551 [automerger] Overshoot when flinging up from an app am: b45444b250
Change-Id: I25d7621d3b60b307d4eb7c466eafc893e78b7ea0
2018-06-06 23:20:59 +00:00
Tony Wickham
b45444b250 Overshoot when flinging up from an app
- Use OvershootInterpolator based on velocity (consistent with swiping up
  from home)
- Scale down recents as well, to be consistent with adjacent pages scaling
  up when you launch a task

Bug: 109709720
Change-Id: Ie47309058ccf673a4b86c40c843c415beb2d8dc7
2018-06-06 23:20:58 +00:00
Android Build Merger (Role)
f99417f8bb [automerger] Reset state amanger, when switching from state animation to task launch animation am: 0cd2a254b2
Change-Id: Ide18fd680c598701a8521e5fca1fecb0efd5f3a2
2018-06-06 18:45:07 +00:00
Sunny Goyal
0cd2a254b2 Reset state amanger, when switching from state animation to task launch animation
A pending task launch animation can set some transient properties on state manager.
If the next animation is not a state animation, and reapply is not called, the
transient properties are never cleared

Bug: 79935289
Change-Id: I18398c74692960c460af537bf0c48801e69ac11e
2018-06-06 11:45:00 -07:00
Winson Chung
48412ca2c9 Merge "Fixing task window is not getting alpha set properly when long-swiping" into ub-launcher3-edmonton 2018-06-06 01:00:55 +00:00
Android Build Merger (Role)
4600bfca66 [automerger] Fixing task window is not getting alpha set properly when long-swiping am: d01a28758d
Change-Id: I83c8cb55b8d1ad95dc2f36ae3aa368dbcce3acdc
2018-06-06 00:24:13 +00:00
Sunny Goyal
d01a28758d Fixing task window is not getting alpha set properly when long-swiping
We were setting the alpha of the target window to 0 on the UI thread, and setting it
back to 1, through ClipAnimationHelper on background thread

Bug:109701914
Change-Id: I4abb73298b5e957a66f91c5654b184cdd398724b
2018-06-05 17:24:06 -07:00
Winson Chung
7938e9fbc6 Merge "Log source component instead of current task base intent" into ub-launcher3-edmonton 2018-06-06 00:20:32 +00:00
Winson Chung
a1b651dcaf Merge changes from topic "am-f473c0ff-c51d-4d80-bdfd-be4951e83f73" into ub-launcher3-edmonton-polish
* changes:
  [automerger] Log source component instead of current task base intent am: 3cc3df59af
  Log source component instead of current task base intent
2018-06-06 00:20:32 +00:00
TreeHugger Robot
af19ffff62 Merge "Adding a pending invisibility flag, which is used to indicate that the launcher is not really invisible, but consider it invisible for window transitions" into ub-launcher3-edmonton 2018-06-05 23:57:08 +00:00