Commit Graph

14078 Commits

Author SHA1 Message Date
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
TreeHugger Robot 4426b1d27f Merge "Updating UserEventDispatcher to make some methods accessible." into ub-launcher3-dorval-polish 2017-07-19 20:30:44 +00:00
TreeHugger Robot 5be36b4941 Merge "Factor in CellLayout padding in cell size calculation." into ub-launcher3-dorval-polish 2017-07-19 20:25:57 +00:00
Hyunyoung Song 435a35dec3 PopupContainerWithArrow should align correctly in RTL mode
Test: see attached screenshot in the bug

Bug: 63721807

the horizontal gravity enforcement has to be done on (left+translateX) value
and not just translateX. Hence that enforcement has been moved to onLayout.

Change-Id: I9b6502dc55d59e04a406ebe71ac3b649b31d6088
2017-07-19 12:35:11 -07:00
Sunny Goyal 2b50b53183 Updating UserEventDispatcher to make some methods accessible.
> Removing helper methods around fillInLogContainerData so that its easier to
  create events with 3 and more srcTargets
> Removing setPredictedApps from userEventDispatcher as its specific to Launcher
  and does not apply to other activities. Instead moving it to AllAppsRecyclerView

Bug: 63719473
Change-Id: Ib92621e41ede4ffe03892642ab173772b5a84dd1
2017-07-19 11:03:35 -07:00
Adam Cohen 5360b6ee4f Fix regression which broke Workspace flings in RTL
issue 63815505

Change-Id: Iac2f66235c0d36c0df58da20f3e0aace14c190b7
2017-07-18 16:19:35 -07:00
TreeHugger Robot b11be0bff5 Merge "Decrease the animation delay when closing Folder from 2+ page." into ub-launcher3-dorval-polish 2017-07-18 20:05:16 +00:00
Jon Miranda 8632d9dd1e Factor in CellLayout padding in cell size calculation.
Bug: 63753505
Change-Id: I221dfb1d486110f8de3994085d917c12f82bcd0f
2017-07-18 12:42:15 -07:00
Jon Miranda e8e6d9b658 Decrease the animation delay when closing Folder from 2+ page.
Bug: 36022592
Change-Id: I3ec956b354efb3836c4c3cf9baf361f763faae1f
2017-07-18 11:58:22 -07:00
TreeHugger Robot 6596f75dd3 Merge "Using collator for string matching" into ub-launcher3-dorval-polish 2017-07-18 18:46:14 +00:00
TreeHugger Robot 79cb830231 Merge "Dark page indicator for wallpapers that support dark text." into ub-launcher3-dorval-polish 2017-07-18 18:44:06 +00:00
Sunny Goyal 05d2df1678 Using collator for string matching
This provides a better matching for non-latin characters on N and above

Bug: 63763127
Change-Id: I220487d242ff547311ddd13e7af380a7e47eec0e
2017-07-18 11:23:23 -07:00
Jon Miranda b24fa30025 Fix crash when adding PinShortcutRequestActivityInfo to Folder.
Bug: 63770450
Change-Id: Ibc7553933a53d8af459628add7644fbaf5820cb0
2017-07-18 11:04:55 -07:00