Commit Graph

11894 Commits

Author SHA1 Message Date
TreeHugger Robot
1143469a79 Merge "Tapl library" into ub-launcher3-master 2018-07-24 19:39:54 +00:00
Vadim Tryshev
2ce6a13f60 Tapl library
The public API of the library has finalized; flakiness has been removed;
code polished.

Bug: 110103162
Test: TaplTests suite
Change-Id: Ic156bbfeedb1cb9c4a48ef907f97e396e8e81936
2018-07-20 14:43:05 -07:00
Tony Wickham
ae71e086a2 Merge "Add null check before playing recents scale down anim" into ub-launcher3-edmonton-polish 2018-07-19 21:55:36 +00:00
Android Build Merger (Role)
8bf6064fe0 [automerger] Add null check before playing recents scale down anim am: 7cc878b5ae
Change-Id: Ie10ecb7da0307d17c408979d4f6a85906d278c11
2018-07-18 22:55:55 +00:00
Tony Wickham
7cc878b5ae Add null check before playing recents scale down anim
When swiping up to overview from an app, we scale down RecentsView in
launcher, synchronized with the app window. In rare cases, however,
there may not be any TaskViews in launcher, so we should just ignore
the launcher component in this case. For example, this happens in
LockTask mode.

Bug: 110703110
Change-Id: Ib6f836581a3e12babf4e26e272b77bb529f86fd4
2018-07-18 15:51:43 -07:00
TreeHugger Robot
7b8ed5a111 Merge "Defer starting the high-res thumbnail loader until quick step/scrub" into ub-launcher3-edmonton-polish 2018-07-18 22:15:15 +00:00
Android Build Merger (Role)
498a9bd559 [automerger] Defer starting the high-res thumbnail loader until quick step/scrub am: 8eb49e079e
Change-Id: I3b69862c42175d7680fd6a4878247c3cf7c0081f
2018-07-18 22:06:04 +00:00
Winson Chung
8eb49e079e Defer starting the high-res thumbnail loader until quick step/scrub
- When hitting the home button, we may be loading high-res thumbnails
  unnecessarily since the high-res loader is already enabled when
  Launcher is started.

Bug: 111515602
Bug: 111156069

Change-Id: I367993b4ddf653b816355df005c745caed5e794a
2018-07-18 15:05:54 -07:00
Matthew Ng
eb9cc9dbd5 Animate the long press icon scale for task menu to match task view
Use scale listeners to track each other's icon scale to match them.

Test: go to recents and long press icon
Fixes: 110789415
Change-Id: I9bba3130ecf1d099db9708c84e709d16f5906c36
2018-07-17 11:21:23 -07:00
Android Build Merger (Role)
1f8cbcf1c6 [automerger] App menu icon launching app info hides taskview menu am: 00fec0d53b
Change-Id: I9a9367b8c6f41aba000f842df7d44171392639ec
2018-07-14 00:02:12 +00:00
Matthew Ng
00fec0d53b App menu icon launching app info hides taskview menu
Change-Id: I0b493229d18027adbb7c1ee15b38d859e0b3a434
Fixes: 111405044
Test: go to overview, tap icon, tap app info
2018-07-13 17:00:24 -07:00
Sunny Goyal
379e8e0fa2 Preventing state change duing the swipe up animation when the previous app
transition is not complete

> This state change causes the RecentsView to get reset making the first
task visible

Bug: 111404703
Change-Id: I8ff2577bf965fb4cdf736fb18683ded63ade1872
2018-07-12 15:15:00 -07:00
Sunny Goyal
32f91ab991 Proxying touch events from RecentsTouchConsumer to Launcher
While swipe-up animation is running, the user can quickly start
another touch gesture. In that case we keep the recents transtion active
and proxy all touch events to launcher.

Bug: 110901700
Change-Id: Ie3b448dfea00473082dc9143423d3596504a3fcc
2018-07-12 14:06:54 -07:00
Sunny Goyal
0a40a187b5 Merge "Exposing some private methods to easily customize arrow popup" into ub-launcher3-master 2018-07-12 18:45:27 +00:00
TreeHugger Robot
90218c4435 Merge changes from topic "am-3a638250-0228-430a-9592-99d4a7bd5036" into ub-launcher3-master
* changes:
  [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
  Workaround for flicker between handoff from app to task view
2018-07-12 17:33:22 +00:00
Hyunyoung Song
956ec4b0e5 Remove device profile dependency from UserEventDispatcher
Bug: 110122682

Change-Id: I31ba61e60e31f1cc84e6d0cf115193e45d9fcfdb
2018-07-11 23:31:01 -07:00
Sunny Goyal
87b5eb689b Exposing some private methods to easily customize arrow popup
Change-Id: I6f6dc0604a616f26c0879732a0237767ddbfdccc
2018-07-11 14:35:51 -07:00
Android Build Merger (Role)
e946640883 [automerger] Workaround for flicker between handoff from app to task view am: 35a6848fa8
Change-Id: Idcffacc752663758ac38937819457195b637ed10
2018-07-11 18:00:11 +00:00
Winson Chung
35a6848fa8 Workaround for flicker between handoff from app to task view
- Defer finishing the recents animation for a couple frames until the
  frame has likely been pushed to sf and drawn, otherwise the reparenting
  of the app surface may happen before the task view is visible in
  Launcher.

Bug: 111299394
Test: Swipe up repeatedly from an app
Change-Id: I627dc085a5e376436b2b8eb5841c45fd36deff42
2018-07-11 11:00:03 -07:00
TreeHugger Robot
17b7d36594 Merge "Touch up/cancel over navigation bar will send down event to drag layer" into ub-launcher3-master 2018-07-10 19:48:24 +00:00
Matthew Ng
7068f56922 Touch up/cancel over navigation bar will send down event to drag layer
There is no events from nav bar to send to drag layer until crossing the touch
slop on move. If up occurs, sending the touch down event will clear floating
objects such as the folders.

Change-Id: I6095506f505535e04d59c403e539f37e27295470
Fixes: 111008382
Test: open folder, touch an empty space on nav bar
2018-07-10 12:38:55 -07:00
Sunny Goyal
d7e217abb3 Animating task icon scale when using long swipe
> Separating the task icon animation and setter into 2 separate methods and calling each appropriately
> Using taskId instead of TaskView for ignoreSet as taskView can be reassigned

Bug: 110893730
Change-Id: I7bc958e53becffdf633766373b257ead2eeef2ad
2018-07-10 12:32:31 -07:00
TreeHugger Robot
070d23091a Merge "Dismiss pip will fade task in and snap to it" into ub-launcher3-master 2018-07-10 19:10:11 +00:00
Winson Chung
ce368154ce Prevent extra call to set activity orientation.
- We can request the locked orientation for quickscrub only when we
  start quickscrub

Bug: 80500702
Change-Id: I2e83ff916f92959fccf79f1d6b987806338512f5
2018-07-03 21:51:06 +00:00
Sunny Goyal
d0e360a858 Lazy loading LauncherAppState
Separating InvarantDeviceProfile out of LauncherAppState and creating
LauncherAppState only when it is actually used

Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
2018-07-03 14:39:21 -07:00
Matthew Ng
87555c56dc Fixed small line that may appear opening task menu with decimal position
Round the y and x values to get correct position without showing a small
line when opening the task menu.

Test: increase the display and font size to large, go to overview and
tap icon
Fixes: 110415497

Change-Id: Ia41378863fb08fc72f5cd14b40f45769ab612d22
2018-07-03 15:25:31 +00:00
Sunny Goyal
7f920b8d5e Cleaning up build rules to simplify customizing derivative projects
> Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml
  for strings which are dependent on packageName
> Adding proguard rule to prevent obfuscating any overridable class
> Making it easier to extend SettingsActivity by overriding the fragment class

Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
2018-07-02 11:16:04 -07:00
Adam Cohen
d63e6dff28 Last minute swipe up overshoot tweaks
b/109709720

Change-Id: Ie3831289a9af2ba4b03fcbb4f2cbb3f4c2431aec
2018-06-27 15:57:12 -07:00
Tony Wickham
969abca838 Merge "Swipe up overshoot always plays" into ub-launcher3-edmonton-polish 2018-06-27 21:00:54 +00:00
Tony
cc3755da6e Swipe up overshoot always plays
Instead of using an OvershootInterpolator, we adjust the end progress to > 1 and
add a second interpolator to settle back to 1. That way, even if the animation runs
starting very late, e.g. 1.0, it still has room to overshoot. We use this same
OvershootParams class to calculate an overshoot for a blocked long fling as well.

Bug: 109709720
Change-Id: I43152237e4350f93e7c462c22e68d09d05c1dd57
2018-06-27 12:25:35 -07:00
Jonathan Miranda
f274996ef3 Revert "Add stagger and "springs" to app closing transition."
This reverts commit cd57901ca4.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I13e9d2db8f6d6118a1448ba04b67c81b4e485447
2018-06-26 23:24:20 +00:00
Jonathan Miranda
6a2a1a91a0 Revert "Refactor "spring" code into one method."
This reverts commit b83c71aa24.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I747dfc2ed63709f5f4032b4d4bd2cf3cd5d9e8ce
2018-06-26 23:00:44 +00:00
Matthew Ng
93ea9517fc Dismiss pip will fade task in and snap to it
Test: pip maps and dismiss when on overview
Fixes: 73097187
Change-Id: I6eedb8c2a57963f29d5655dd8f2bcdd350ed4792
2018-06-26 14:25:59 -07:00
Jonathan Miranda
5023771e05 Revert "Tune app closing/launcher resume animation "spring" values."
This reverts commit c9a7c50fac.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I7ed4270b742803265ed4e3e13b63688842e0b48c
2018-06-26 20:21:07 +00:00
Jon Miranda
c9a7c50fac Tune app closing/launcher resume animation "spring" values.
Bug: 109828964
Change-Id: I64252667451f511b7affdde5ffb28812876e7f4c
2018-06-25 16:42:58 -07:00
TreeHugger Robot
563bc3d1fa Merge "Invoking splitscreen takes snapshot of task without scrim" into ub-launcher3-edmonton-polish 2018-06-22 23:21:00 +00:00
Android Build Merger (Role)
911f9257aa [automerger] Invoking splitscreen takes snapshot of task without scrim am: 26f02037cd
Change-Id: I91eb9037fb7b4e601c8d6edb3be7944e7f8b5d84
2018-06-22 23:10:24 +00:00
Matthew Ng
26f02037cd Invoking splitscreen takes snapshot of task without scrim
Change-Id: I456200f9f61f12b7b80a2604cfeffc2fa16711ce
Fixes: 109676098
Test: splitscreen in overview
2018-06-22 23:10:23 +00:00
TreeHugger Robot
c22289b69e Merge "Touching outside the task in overview goes home" into ub-launcher3-edmonton-polish 2018-06-22 17:44:37 +00:00
TreeHugger Robot
7460b0cf75 Merge changes from topic "am-85252a0e-4c92-4f09-87df-0c1bbcacd786" into ub-launcher3-master
* changes:
  [automerger] Touching outside the task in overview goes home am: b5669efa36
  Touching outside the task in overview goes home
2018-06-22 17:44:37 +00:00
TreeHugger Robot
f6ab06df8b Merge "Fetching assist data only if required by overlay" into ub-launcher3-edmonton-polish 2018-06-22 00:57:57 +00:00
Android Build Merger (Role)
e98d0cec4a [automerger] Touching outside the task in overview goes home am: b5669efa36
Change-Id: Ib134345cae0afc91f22899fac20a8b93c5930dc1
2018-06-21 23:04:07 +00:00
Matthew Ng
b5669efa36 Touching outside the task in overview goes home
There is also a deadzone area around the clear all button to tap easier.

Test: start overview click anywhere that is not the shelf or task
Change-Id: I187ff264444da542aca111b57d94c8199f5a0384
Fixes: 110232233
2018-06-21 16:03:48 -07:00
Android Build Merger (Role)
eb12de06c3 [automerger] Fetching assist data only if required by overlay am: b44c6552b3
Change-Id: Ia6b34b90e9c8015e1e1d2c9c61dce22aa52c1729
2018-06-21 19:19:09 +00:00
Sunny Goyal
b44c6552b3 Fetching assist data only if required by overlay
> Preloading assist data after the touch interaction is complete
> Fixing swipe-up callbacks called in case of quickscrub

Bug: 110532258
Change-Id: I472884ec96be877db5f38098fd0165d464e836ed
2018-06-21 12:18:33 -07:00
TreeHugger Robot
0d746f600b Merge changes from topic "am-dbbb1f28-c3b5-48d1-928e-896c408bee5e" into ub-launcher3-master
* changes:
  [automerger] Allow clear all button in overview be clickable if visible am: 330a634648
  Allow clear all button in overview be clickable if visible
2018-06-21 17:38:24 +00:00
TreeHugger Robot
03a190d284 Merge "Allow clear all button in overview be clickable if visible" into ub-launcher3-edmonton-polish 2018-06-21 17:38:24 +00:00
Jon Miranda
b83c71aa24 Refactor "spring" code into one method.
+ Increases the alpha duration of the staggered spring views.

Bug: 109828964
Change-Id: Id7dff9718dfcd5ca5653fdde36d3792201f483b5
2018-06-21 09:34:25 -07:00
Jonathan Miranda
48010091f4 Merge "Adjust interpolators when swiping from overview to all apps" into ub-launcher3-edmonton-polish 2018-06-21 00:30:02 +00:00
Tony Wickham
17be4e71b2 Adjust interpolators when swiping from overview to all apps
- All apps content fades in quickly so that icons are opaque by the time
  they are on screen
- Recents fades out late so that we don't see it as translucent while
  the transition is continuing (the translucent icon top of tranclucent
  task view looks bad, for instance)
- Fix colored scrim that appears over recents - was using 0 to 1 instead
  of 255

Bug: 79867407
Change-Id: I4f50423157f7870c8d0708f586a72e3e5a7b6559
2018-06-20 16:58:21 -07:00