Commit Graph

6896 Commits

Author SHA1 Message Date
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
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
Jonathan Miranda
9ad87463a8 Revert "Update Folders to match spec."
This reverts commit fd8fa136f5.

Change-Id: Ifb8ce81e23f38df2eb2c26f93376eca19caae5b1
2017-07-26 11:05: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
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
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
TreeHugger Robot
751ea1c10e Merge "Fix bug where Folder name stayed invisible." into ub-launcher3-dorval-polish 2017-07-18 03:47:44 +00:00
Jon Miranda
19db4255a6 Fix bug where Folder name stayed invisible.
Accidentally removed from Change-Id: I7ede7ed9e091e2a0c3cbe11731744bfe9ce36595

Bug: 63777585
Change-Id: I3178944285f11ab3efbd3b446c22b4b5f6843988
2017-07-17 17:45:52 -07:00
Mario Bertschler
b2b0333a62 Dark page indicator for wallpapers that support dark text.
Bug: 63716936
Change-Id: Ie21680e285aecfe92262208c8f97c8aa496dc092
2017-07-17 14:46:21 -07:00
TreeHugger Robot
b49ff69b91 Merge "Accounting for bottom margin in the search box in app-scroll range" into ub-launcher3-dorval-polish 2017-07-17 20:48:45 +00:00
Sunny Goyal
0bf251b643 Accounting for bottom margin in the search box in app-scroll range
Bug: 2539098
Change-Id: I9d7cdb05d33af397a4adcfc2f1f6c1d380b9fb0e
2017-07-17 12:55:06 -07:00
TreeHugger Robot
6967552065 Merge "Collapse caret click and all apps click into one" into ub-launcher3-dorval-polish 2017-07-14 23:26:42 +00:00
TreeHugger Robot
95b97c5dec Merge "Tighten up vertical spacing in landscape all apps." into ub-launcher3-dorval-polish 2017-07-14 23:17:58 +00:00
Adam Cohen
bf78f3cd41 Collapse caret click and all apps click into one
-> Was separating them for cleanliness, but turns out
   in portrait the caret is the button, but in landscape it's not.
   We'll clean all this up later.

Change-Id: Icbc185f9183ded685b4a988eacf19cb7583ed8ad
2017-07-14 16:11:10 -07:00
Jon Miranda
4e358271d3 Tighten up vertical spacing in landscape all apps.
Bug: 37015359
Bug: 62801588
Change-Id: Ia4bdc2c2b12647cd671cf8a3e7a8defc43863da1
2017-07-14 15:55:07 -07:00
Mario Bertschler
07eeb60c47 Merge "Changes on the wallpaper gradient extraction algorithm: fallback colors for very light or very dark luminosity." into ub-launcher3-dorval-polish 2017-07-14 22:35:08 +00:00
TreeHugger Robot
c402a4663f Merge "Make landscape all apps caret clickable when in all apps as well as workspace" into ub-launcher3-dorval-polish 2017-07-14 22:17:14 +00:00
Adam Cohen
5441a9d30a Make landscape all apps caret clickable when in all apps as well as workspace
-> Also increase the touch target size of the caret
-> Center the asset horizontally within the view (but keep it bottom
   asligned)

issue 63681599
issue 63682248

Change-Id: I64efdfb9f84b82cc21d82c10d9301a99fed3353a
2017-07-14 22:09:56 +00:00
Jon Miranda
4dd024b974 Add new motion for when Folder preview changes due to onDrop.
Instead of changing the display order of the Folder to preserve
the upper left quadrant, we are opting to change the Folder Icon
preview to always show the upper left quadrant.

This means that when adding items to a Folder, the preview items
may change. (They will change when the column size increases).

Bug: 27944225
Bug: 63140071
Change-Id: I863c2479469d68559cab2878030c2087d48217d6
2017-07-14 14:27:44 -07:00
TreeHugger Robot
5dcd5027ca Merge "Polish Folder open animation during drag and drop." into ub-launcher3-dorval-polish 2017-07-14 20:27:49 +00:00
TreeHugger Robot
542bbca313 Merge "Catch SecurityException from NoMan to workaround possible race condition" into ub-launcher3-dorval-polish 2017-07-14 20:23:26 +00:00
Jon Miranda
ecf451457b Polish Folder open animation during drag and drop.
We now use the current FolderIcon background radius as the
clipping size for the Folder, which results in a smoother
hand-off between the two.

Before this change, the Folder would center itself against the FolderIcon
during the hand-off. This resulted in the preview items being fully-visible
in the FolderIcon, to being clipped in the Folder.

Bug: 63709477

Change-Id: I1da187485f28dde92d171729b011ada47a506f85
2017-07-14 13:18:25 -07:00
Adam Cohen
f423f0a6d4 Catch SecurityException from NoMan to workaround possible race condition
b/63636581

Change-Id: Ia06a5be59b2114bda9b4a55ad945fdd832013110
2017-07-14 13:15:06 -07:00
Jon Miranda
52ff325841 Move padding from Hotseat to Hotseat's CellLayout.
Bug: 63590728
Change-Id: I3ba6ba83b83897d75cc4445a7dab9c5b8b7b8ff1
2017-07-14 11:39:16 -07:00
Mario Bertschler
97f93583d3 Changes on the wallpaper gradient extraction algorithm: fallback colors
for very light or very dark luminosity.

Bug: 63705813
Change-Id: I71b29e294b1c9c139f8f778e8f217e127d95fec5
2017-07-14 11:11:21 -07:00
Jon Miranda
2803200697 Set edgeMarginPx back to 8dp.
With the new grid changes, it was set to 16dp but this caused an issue
where the workspace page spacing was too large. To "restore" the original
page spacing we set it back to 8dp. This caused an issue where the
pages began to overlap.

This CL changes the edgeMarginPx back to 8dp, and then adds the additional
8dp to the padding of the CellLayout.

Bug: 63590728
Change-Id: Ie968d8bd81de19c726f73581d6609e3bc486c5ca
2017-07-13 18:40:48 -07:00
Jonathan Miranda
8701cd58cf Revert "Match items in icon preview with items in Folder using permutations."
This reverts commit 69c340a05e.

Change-Id: I4178b58e847a87e5cd7e5fa4b6886f0d72ba387b
2017-07-13 16:49:33 -07:00
TreeHugger Robot
433bdedaa2 Merge "Revert "Update existing Folder items' ranks to match their pre-permutation layouts."" into ub-launcher3-dorval-polish 2017-07-13 23:41:08 +00:00
Jonathan Miranda
36be1d3674 Revert "Update existing Folder items' ranks to match their pre-permutation layouts."
This reverts commit c4b296a50e.

Change-Id: Ieff7873edc3cb300fe454b0ad97d6f0b4f0cb5a9
2017-07-13 18:00:52 +00:00