Commit Graph

14090 Commits

Author SHA1 Message Date
Jon Miranda
48a4e91c73 Fix bug where all apps items fade in.
Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.

Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
(cherry picked from commit 7dfabaa02b)
2017-08-15 20:50:00 +00:00
Jon Miranda
bb10fa8fc2 Fix bug where all apps scrollbar jumps.
The problem is that rowAppIndex is not being set when we swap in the
new predictions. So when we call AllAppsRecyclerView#getCurrentScrollY,
the "item.rowAppIndex == 0" clause returns true for every predicted app,
which results in a larger than expected value.

Bug: 64628968
Change-Id: I37ca660522b5a99666de2ea0b9c0aa8cd3732aca
2017-08-14 12:35:53 -07:00
TreeHugger Robot
56ad97cf2d Merge "Switch the status bar color earlier in the all apps transition" into ub-launcher3-dorval-polish 2017-08-04 17:30:06 +00:00
Adam Cohen
3051dbabe7 Switch the status bar color earlier in the all apps transition
-> When LAUNCHER3_GRADIENT_ALL_APPS is true, switch the status / nav bar
   to be dark when the transition is 75% of the way through, since at this point
   the gradient is already substantially under the status bar.

issue 64385775

Change-Id: Ie27b8f2afa404c0b3081a4f17daa92ef4e0472bc
2017-08-04 09:29:14 -07:00
TreeHugger Robot
402fb03160 Merge "Fix bug where user gets stuck in overscroll." into ub-launcher3-dorval-polish 2017-08-04 16:10:59 +00:00
Tony Wickham
2bc5c995f6 Add new GradientView just for WidgetsBottomSheet
Reusing the one behind all apps caused problems when
opening widgets sheets from all apps.

Bug: 64344341
Change-Id: Ia964d8456645c78614f94693f9538dbac4f566a0
2017-08-03 15:42:03 -07:00
Jon Miranda
27ad267a81 Fix bug where user gets stuck in overscroll.
By not intercepting touch when in overscroll, the user
can immediately exit by swiping the opposite direction.

Bug: 64094565
Change-Id: I0b4e3e7a38d90d4e6a336985d939d177a8f04c9b
2017-08-03 15:08:35 -07:00
Jon Miranda
7f522a25c3 Optimizations to reduce all apps jank.
* Since adding springs to the apps in All Apps, it is no longer
  efficient to build a hardware layer for it.
* Pre-uploads bitmaps to RenderThread.
* Only add overview animations if we are transitioning to/from it.

Bug: 63711551
Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
2017-08-02 12:41:33 -07:00
TreeHugger Robot
807c593256 Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish 2017-08-02 12:56:13 +00:00
TreeHugger Robot
39c6de4374 Merge "Landscape launcher grid/all apps to spec." into ub-launcher3-dorval-polish 2017-08-02 00:12:37 +00:00
Jon Miranda
18751b649d Landscape launcher grid/all apps to spec.
* Moves FastScroller to the right.

Bug: 64160529
Change-Id: Ie0dfc0a2f0f2d6f6366e4f299769148d76017782
2017-08-01 16:56:38 -07:00
Bill Yi
43387914ca Import translations. DO NOT MERGE
Change-Id: Ief09f14606e61d02e2439d535158b95306510b75
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-08-01 15:22:18 -07:00
Sunny Goyal
b65e13ca83 Making the whole preference entry a single tap target when notification access
is not available

Bug: 64232287
Change-Id: I93dadfb88ee5d008dee7582c5f37ea3d354330cd
2017-08-01 11:05:08 -07:00
TreeHugger Robot
ec99420fe7 Merge "More launcher grid updates." into ub-launcher3-dorval-polish 2017-07-31 18:44:46 +00:00
TreeHugger Robot
9f5f297331 Merge "Sending onCreate to the callbacks after our call is complete" into ub-launcher3-dorval-polish 2017-07-31 17:18:38 +00:00
Sunny Goyal
14b3240eca Sending onCreate to the callbacks after our call is complete
Bug: Bug: 63381480
Change-Id: Ib5fcd9ef500a91fef93c9e5af657b23723748ccc
2017-07-31 10:04:06 -07:00
TreeHugger Robot
0e657ed260 Merge "Optimize updating All Apps Predictions." into ub-launcher3-dorval-polish 2017-07-30 18:19:19 +00:00
Jon Miranda
7653a60c74 Optimize updating All Apps Predictions.
* Prefetch existing predictions in onResume.
* Only update predictions if something has been changed.
* Swap predictions in place (if possible) -- this avoids
  having to relayout all of All Apps when just the predictions
  change.

Bug: 64126588
Bug: 63711551
Change-Id: Iffa0d9d7d6f99f606dd68b7df5893d6eba1574f5
2017-07-30 11:04:58 -07:00
Tony Wickham
f45b7bd949 Merge "Use deep shortcuts' icons as a fallback when updating" into ub-launcher3-dorval-polish 2017-07-29 03:18:26 +00:00
Tony
a8ccf09597 Use deep shortcuts' icons as a fallback when updating
We already do this when loading, but now we also do it when
getting callbacks that potentially change the shortcut icon.
These callbacks first check the pinned shortcut info, but if
there is no icon there we now fall back to the current icon
instead of the default icon.

Bug: 62814533
Change-Id: I777adedf4b7f93dbaddb98a993eda34d59dcc173
2017-07-28 18:11:06 -07:00
Adam Cohen
1201982233 Cleanup duplicate translation resources
issue 64095837

Remaining xx-rYY resource directories:
values-en-rAU
values-en-rGB
values-en-rIN
values-es-rUS
values-fr-rCA
values-pt-rPT
values-zh-rCN
values-zh-rHK
values-zh-rTW

Change-Id: I8c7c31487f953876998e1b4d08858fb1985e696d
2017-07-28 15:16:57 -07:00
Jon Miranda
3f9bab2fe4 More launcher grid updates.
* Increase padding when in All Apps landscape.
* Calculate aspectRatio using width/height instead of
  availableWidth/Height.
* Instead of increasing page indicator size, we add the extra height to
  the Hotseat.

Bug: 63996463
Bug: 63149981
Change-Id: I1ee3549b4089b277704d5d72e1b7cb5a2abdbd5a
2017-07-28 14:50:17 -07:00
Bill Yi
172fb8cffe Import translations. DO NOT MERGE
Change-Id: I06ca8217be02e7f8641d2e5254cfeb2f5d61e1a4
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-28 03:55:43 -07:00
TreeHugger Robot
4752686389 Merge "Remove extra call to AllAppsContainerView#reset." into ub-launcher3-dorval-polish 2017-07-27 18:28:36 +00:00
TreeHugger Robot
b35bb6021c Merge "Launcher grid changes." into ub-launcher3-dorval-polish 2017-07-26 23:59:59 +00:00
Mario Bertschler
254bd42729 Merging ScrimView into GradientView
Less banding, less drawing for All Apps Transition.

Bug: 63873246

Change-Id: I6c7c856e2939a10db7e44b266c1d6d51334fd152
2017-07-26 14:33:22 -07:00
Jonathan Miranda
8806475b8e Merge "All Apps physics polish." into ub-launcher3-dorval-polish 2017-07-26 21:28:34 +00:00
TreeHugger Robot
5401fb146b Merge "Add padding to the top of Folders for visual balance." into ub-launcher3-dorval-polish 2017-07-26 20:25:24 +00:00
Jon Miranda
2d5e0e067c All Apps physics polish.
With this change, the springs will now animate if your finger
is on the RecyclerView while you hit the top/bottom.

This covers the case when the user has few apps (ie. the
RecyclerView does not scroll very much).

Bug: 64041310

Change-Id: Ia72aea05d62a6fb896fdb7df379d6c7abd188d6d
2017-07-26 20:21:07 +00:00
Bill Yi
feaf3143eb Import translations. DO NOT MERGE
am: 3de7ee4463  -s ours

Change-Id: I9222199d59a75e5a190139e134a5cff74727f9f3
2017-07-26 19:56:47 +00:00
TreeHugger Robot
4729c1b53c Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish 2017-07-26 19:52:59 +00:00
Jon Miranda
bd3057dde2 Add padding to the top of Folders for visual balance.
This CL is built on top of Ifb8ce81e23f38df2eb2c26f93376eca19caae5b1.
We will address Folder spec in a future release.

Bug: 63825895
Bug: 64064973
Change-Id: Ie351ad17805a092f59b5142fc2f7143e4f212b14
2017-07-26 11:14:26 -07:00
Jonathan Miranda
9ad87463a8 Revert "Update Folders to match spec."
This reverts commit fd8fa136f5.

Change-Id: Ifb8ce81e23f38df2eb2c26f93376eca19caae5b1
2017-07-26 11:05:29 -07:00
Bill Yi
119bb836b4 Import translations. DO NOT MERGE
Change-Id: I955c6857dba376a8f5d7f171c8cf06127183b1bb
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-26 10:17:19 -07:00
Bill Yi
3de7ee4463 Import translations. DO NOT MERGE
Change-Id: Ib709cd6496a8cbb91b5afe5a6d87499fbaaa15ac
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-26 10:16:31 -07:00
Jon Miranda
30d0aa2605 Launcher grid changes.
* Tighten up space on Workspace/All Apps for tall devices.
* Decrease the cell layout padding.

Bug: 63996463
Change-Id: Ifc89e4786b7033e2af77d3742006d8c9ee719081
2017-07-25 15:55:29 -07:00
TreeHugger Robot
df4aaca594 Merge "Fix bug when dragging FolderIcon between Workspace/Hotseat." into ub-launcher3-dorval-polish 2017-07-24 19:46:47 +00:00
Jon Miranda
0c172151c3 Fix bug when dragging FolderIcon between Workspace/Hotseat.
Bug: 63902464
Change-Id: I7995295d5c350720030abc6651af681c880464f8
2017-07-24 12:32:41 -07:00
Hyunyoung Song
f38758de10 Merge "separate enforceContainerWithinScreen logic to a private method" into ub-launcher3-dorval-polish 2017-07-24 19:19:52 +00:00
Jon Miranda
14709c6eea Remove extra call to AllAppsContainerView#reset.
We were calling reset twice:
* LauncherStateTransitionAnimation#startAnimationToWorkspaceFromAllApps
* AllAppsTransitionController#finishPullDown

Bug: 63711551
Change-Id: Ib695332f537c270ecd3a67c4369fe90b8761032a
2017-07-24 12:19:21 -07:00
Jon Miranda
1091e538b4 Manually compute all apps cell height in multi-window mode.
The All Apps cell height is set to match the Workspace.
This causes a problem in multi-window mode because only the
Workspace items do not have labels.

Bug: 63933609
Change-Id: I13be6e50c12d50465be0555721f273abfc0d836a
2017-07-24 10:45:36 -07:00
Mario Bertschler
c08f0c2859 Merge "Adding ability to set a custom blur mask filter and alphas in shadow generator." into ub-launcher3-dorval-polish 2017-07-21 20:37:16 +00:00
Mario Bertschler
665971c007 Adding ability to set a custom blur mask filter and alphas in shadow
generator.

Bug: 63151770
Change-Id: I7d79b700b64ccb949816b7bf31d98cc76fa443ba
2017-07-20 15:45:55 -07:00
Jon Miranda
fd8fa136f5 Update Folders to match spec.
Bug: 63825895
Change-Id: Ia1a139f1afd944eefcd370645142227317e2bf20
2017-07-20 15:08:06 -07:00
Hyunyoung Song
27790352a3 separate enforceContainerWithinScreen logic to a private method
Change-Id: Ifcf8c6a79286269646a845b5be6cfa92b64fcbcc
2017-07-20 13:57:23 -07:00
TreeHugger Robot
bdf6e7d8f8 Merge "Update when Launcher's scrim should fade." into ub-launcher3-dorval-polish 2017-07-20 18:20:34 +00:00
Jon Miranda
7fda285cf0 Update when Launcher's scrim should fade.
* Scrim will fade first time the user starts Launcher (unlocks device).
* Scrim will fade if resuming from a screen off and Launcher is in
  the foreground.

Bug: 63801668

Change-Id: I4465765fe5a0f81c2f4dec715f9f5a24a309fc1b
2017-07-20 11:10:07 -07:00
TreeHugger Robot
a2d1327b5a Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval-polish 2017-07-20 07:57:26 +00:00
Bill Yi
2e1c9afbb2 Import translations. DO NOT MERGE
Change-Id: If2dc6c9ef6b475270c85da54aa2dfcaf8329b4d3
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-19 23:56:51 -07:00
Hyunyoung Song
60326ece20 Merge "PopupContainerWithArrow should align correctly in RTL mode Test: see attached screenshot in the bug" into ub-launcher3-dorval-polish 2017-07-19 21:23:13 +00:00