Commit Graph

16616 Commits

Author SHA1 Message Date
TreeHugger Robot 40ea0f8a1c Merge "Use clear-all recent tasks call" into ub-launcher3-edmonton-polish 2018-08-03 18:26:51 +00:00
Winson Chung 68df758665 Use clear-all recent tasks call
Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
2018-08-03 11:15:33 -07:00
Jonathan Miranda f42df37951 Merge "Update launcher grid for tablet devices." into ub-launcher3-edmonton-polish 2018-08-02 22:16:06 +00:00
Winson Chung 37ff8be692 Fix missing callback in fallback activity to re-enable high res loader.
Bug: 111515602
Change-Id: Ie4a9e709392ef9dad001651129a46d4caee0c2ae
2018-08-02 09:56:59 -07:00
Jon Miranda 5eacbb7fc1 Update launcher grid for tablet devices.
* Number of hotseat icons matches number of workspace columns.
* Evenly space out the workspace icons.

Bug: 111617973
Change-Id: Ia80e6354c8d449f2a397db5fd432cebc9f23027f
2018-07-31 11:15:01 -07:00
TreeHugger Robot fc254baf88 Merge "Increase max distance for folder creation for tablets." into ub-launcher3-edmonton-polish 2018-07-27 23:08:37 +00:00
Tony Wickham c1de777946 Merge "Fix gap between notification dots and their shadows" into ub-launcher3-edmonton-polish 2018-07-27 22:21:28 +00:00
Tony dfb785afc1 Fix gap between notification dots and their shadows
There was a rounding issue due to usnig integer division when we meant float

Bug: 73331123
Change-Id: Ic3deb1c26aa00808a929e1303602656ce532963d
2018-07-22 13:49:01 -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
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
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
Jon Miranda 5aab8703ee Increase max distance for folder creation for tablets.
Tablets generally have larger cell sizes (relative to phones, and relative to
the icon sizes with the cells). By increasing the distance from 55% to 75% of
icon size, it is easier for users to meet the folder creation threshold before
the icon reorder timeout is triggered.

Bug: 110796219
Change-Id: I8264390b8510340f4062e05ec12d0755e93a80d8
2018-07-17 13:52:24 -07: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
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 f912bd955f Merge changes from topic "am-b2190f70-93ef-44e6-8473-41d098cf486b" into ub-launcher3-edmonton-polish
* changes:
  [automerger skipped] Import translations. DO NOT MERGE skipped: d7a20ce619
  Import translations. DO NOT MERGE
2018-06-29 00:56:59 +00:00
Hyunyoung Song 82d0835fa5 Fix clipping issue on adaptive icons
Bug: 62372639

Verified the one last device, b***line.

Change-Id: I1d97d0cbe0afe76ee21de5964abf639fb4c0fceb
2018-06-28 15:19:05 -07:00
Android Build Merger (Role) 18b5715113 [automerger skipped] Import translations. DO NOT MERGE skipped: d7a20ce619
Change-Id: Ic2480c1add8ddafa803b5e5d30f2adaf2b3813cc
2018-06-28 19:07:33 +00:00
Bill Yi d7a20ce619 Import translations. DO NOT MERGE
Change-Id: Ieabec06db1791c1b2887c37aa600f2178906d761
Auto-generated-cl: translation import
2018-06-28 12:07:24 -07:00
Hyunyoung Song 7d4ef41cb4 Fix clipping issue on adaptive icons
Bug: 62372639

Change-Id: Ie9dcf18f61c45225823dfbbf85578edcbffd86b9
2018-06-28 11:33:23 -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
Jonathan Miranda 33cbe61e97 Revert "Fix typo in horizontalShift"
This reverts commit e45b3e21a9.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I4d2956d3f8d23e8f9579fd61418bc84e7226ef60
2018-06-26 22:33:44 +00:00
Jonathan Miranda 3d80330efc Merge "Revert "Tune app closing/launcher resume animation "spring" values."" into ub-launcher3-edmonton-polish 2018-06-26 22:32:37 +00:00
Tracy Zhou 626467130f Add additional call to onStop() to stablize PIP position.
Bug: 110799409
Test: Manual
Change-Id: I361eeadbf298bb239d8e373f3c6fa49d1f2410a6
2018-06-26 14:19:02 -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
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
Jonathan Miranda b635be59c0 Merge "Add @Test and @Ignore to untested test methods in RequestPinItemTest." into ub-launcher3-edmonton-polish 2018-06-22 01:12:07 +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
Jon Miranda ca02f00eb1 Add @Test and @Ignore to untested test methods in RequestPinItemTest.
Error prone complains when trying to merge launcher3 code to platform pi-dev.

"This looks like a test method but is not run; please add @Test and @Ignore,
or, if this is a helper method, reduce its visibility."

Output:

Executing tasks: [:assembleGoogleDebug, :assembleGoogleDebugAndroidTest]
Gradle build finished in 1s 631ms
Tests Ignored: 1 passed, 4 ignored

Bug: 78589564
Change-Id: Icde57fd8307e1ef409822d1417f629cd1aaa57ba
2018-06-21 17:20:23 -07: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
Tony Wickham 07fcd3bea2 Merge "When controlling atomic components, bound to remaining progress" into ub-launcher3-edmonton-polish 2018-06-21 21:55:31 +00:00
Jon Miranda 1aaaac8343 Add @Test and @Ignore to untested test methods.
Error prone complains when trying to merge launcher3 code to platform pi-dev.

"This looks like a test method but is not run; please add @Test and @Ignore,
or, if this is a helper method, reduce its visibility."

Change-Id: I95f55b95d8f7752c9c941f0828ca22d6427528c6
2018-06-21 14:04:52 -07:00
Tony Wickham 520ffec9d3 When controlling atomic components, bound to remaining progress
Before, we were just controlling the components as far as we had left,
which was fine since they are just a subtle effect anyway. But now that
we don't fade out until the very end, this means that long swiping from
home usually kept recents in the background during the entire swipe and
then abruptly disappear after letting go. Now we make sure the entire
atomic animation plays by the time we reach all apps, so recents will
fade out in all cases.

Bug: 79867407
Change-Id: I7cb6790d9055bc76b4b73ed761604042a308c987
2018-06-21 13:38:53 -07: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
Jon Miranda e45b3e21a9 Fix typo in horizontalShift
Bug: 109828964
Change-Id: I0ef749ccd2d24556e05873186ed3fcdcb09a7d32
2018-06-21 11:33:04 -07: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
TreeHugger Robot 17ebdec113 Merge "Refactor "spring" code into one method." into ub-launcher3-edmonton-polish 2018-06-21 17:27:57 +00:00
TreeHugger Robot 2de013874f Merge "Persist the updated item to DB when a shortcut info is badged for the first time" into ub-launcher3-edmonton-polish 2018-06-21 17:24:43 +00:00
Sunny Goyal f266deb24c Persist the updated item to DB when a shortcut info is badged for the first time
Bug: 110016648
Change-Id: I8e36b80e9c893de91bce208ceac93a3fcdb557d5
2018-06-21 10:00:22 -07: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
Tim Joines 56ded9c4ea Allow Launcher3Go to override Launcher3QuickStep
Go devices will not want QS.

Bug: 77490347, 110425849, 109932837
Test: Manual, Launcher is no longer crashing
Change-Id: I1a1e0540beeab04927802156be26098139710f30
2018-06-21 06:21:00 +00: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
TreeHugger Robot b0ab81633d Merge "Tune device profiles." into ub-launcher3-edmonton-polish 2018-06-21 00:15:15 +00:00