Commit Graph

14490 Commits

Author SHA1 Message Date
TreeHugger Robot cbfdbeaea3 Merge "Update existing Folder items' ranks to match their pre-permutation layouts." into ub-launcher3-dorval-polish 2017-06-29 16:07:53 +00:00
TreeHugger Robot fca68a383e Merge "Polish for all apps physics." into ub-launcher3-dorval-polish 2017-06-29 16:07:38 +00:00
Jon Miranda 35cb8aefea Polish for all apps physics.
By adjusting the start value based on the direction of the scroll,
the springs will appear more smooth.

This only changes the appearance of the spring when scrolling down,
since the start value has always been 1 and thus looked fine when
scrolling up.

Bug: 38349031
Change-Id: I563e6e7cfdbc74c4a95adb22f90d5efe17dfa453
2017-06-29 08:49:10 -07:00
Jon Miranda c4b296a50e Update existing Folder items' ranks to match their pre-permutation layouts.
With the new Folder permutation logic, we change the position of the items
when they are added to a Folder. This means that existing Folders will
now appear in a different order than the user arranged them in.

This change makes sure that when a user upgrades, their existing Folders
will appear untouched.

Note: We decided to priotize restoring the original layout of the Folder,
      as opposed to making sure the preview items remain the same. This
      is less destructive of users' data (we're changing the window into
      the Folder, but not the location of items when the Folder is open).

Bug: 63115141
Bug: 35064148

Change-Id: Ib0a28b4b50be089878ffc3e40bced89832e125bc
2017-06-28 19:10:53 -07:00
Tony Wickham 743d483ef8 Merge "Add gradient background behind widgets bottom sheet" into ub-launcher3-dorval-polish
am: 985cfe9ee4

Change-Id: Ie9e377d13a2c97fc78dc75e40e739361fdf92a40
2017-06-29 00:56:42 +00:00
Tony Wickham 985cfe9ee4 Merge "Add gradient background behind widgets bottom sheet" into ub-launcher3-dorval-polish 2017-06-29 00:48:28 +00:00
Tony Wickham d4fdbf1fd0 Add gradient background behind widgets bottom sheet
Bug: 62806036
Change-Id: I8fe6aa1356788a14a93bdecc7c70d6c59440a1a7
2017-06-28 17:01:55 -07:00
Tony Wickham 9dcc4744f0 Merge "Ensure notification listener is connected before getting notifications" into ub-launcher3-dorval-polish
am: 3bf231d9af

Change-Id: I8884964000a24a30e9f74df9954acba2892aa5f2
2017-06-28 23:56:07 +00:00
Tony Wickham 3bf231d9af Merge "Ensure notification listener is connected before getting notifications" into ub-launcher3-dorval-polish 2017-06-28 23:49:22 +00:00
Rajeev Kumar b055b4b1a0 Merge "Fix the logging tag to be 23 characters it was 24 characters." into ub-launcher3-dorval-polish
am: 15d72f2538

Change-Id: Ib42122600a644471cf687031862e41a02a5627ef
2017-06-28 23:31:36 +00:00
Rajeev Kumar 15d72f2538 Merge "Fix the logging tag to be 23 characters it was 24 characters." into ub-launcher3-dorval-polish 2017-06-28 23:24:17 +00:00
Tony Wickham 8a672109aa Merge "Don't fade in text if icon is in hotseat" into ub-launcher3-dorval-polish
am: 36ace1c74e

Change-Id: I79b0f2c780d7c02fcaffcf84af26f657f103c238
2017-06-28 21:30:27 +00:00
Mario Bertschler 0c69c01e1a Merge "All apps alpha mask asset for all densities." into ub-launcher3-dorval-polish
am: fa283822d6

Change-Id: Ia2d4e267270d7f5598bbb982aea3af2e489fd609
2017-06-28 21:27:57 +00:00
Tony Wickham 36ace1c74e Merge "Don't fade in text if icon is in hotseat" into ub-launcher3-dorval-polish 2017-06-28 21:25:44 +00:00
TreeHugger Robot fa283822d6 Merge "All apps alpha mask asset for all densities." into ub-launcher3-dorval-polish 2017-06-28 21:17:05 +00:00
Tony Wickham cba189344d Ensure notification listener is connected before getting notifications
There was a potential race condition where we would try to do a full
refresh of notifications before the listener was connected. Now we
skip the full refresh if we aren't connected, which is fine because
we also do a full refresh in onListenerConnected() anyway.

Bug: 62107069
Change-Id: I2fe4f49eb8a840230d32034be11fe7765a366e75
2017-06-28 14:14:44 -07:00
Tony 7308cde2ca Don't fade in text if icon is in hotseat
Bug: 63011217
Change-Id: Ie914fcdfd0bf36b0cf12cc54f4e93206aa1074bd
2017-06-28 13:47:18 -07:00
Tony Wickham 60c7239346 Merge "Log an error when loading an icon fails" into ub-launcher3-dorval-polish
am: 59fbea393b

Change-Id: I78a41165348675240ad7970aec6dfd6f69dca6e8
2017-06-28 17:40:41 +00:00
Tony Wickham 59fbea393b Merge "Log an error when loading an icon fails" into ub-launcher3-dorval-polish 2017-06-28 17:37:09 +00:00
Jon Miranda 2668ab58d5 Match items in icon preview with items in Folder using permutations.
am: 69c340a05e

Change-Id: I9efb54b81f891bef76d93aec85994fa121291bef
2017-06-28 17:09:38 +00:00
Jon Miranda 69c340a05e Match items in icon preview with items in Folder using permutations.
Before, with the FolderIconPreviewVerifier, we would
adjust which items are displayed in the FolderIcon.
This caused some issues where the apps in the folder
icon would jump to whatever was in the upper left quadrant.

Now, we always display the 4 first items in the icon by
modifying the XY positions of the items within the Folder.

Bug: 27944225
Bug: 35064148
Change-Id: I46c0fbb064d4da4da155e29963bfb92b14e40f07
2017-06-28 09:52:11 -07:00
Tony 18483fb72b Log an error when loading an icon fails
Bug: 62814533
Change-Id: I8ea61276225e211c578d31a5fd1591c4fb67d1bb
2017-06-27 21:35:54 -07:00
Tony Wickham b258e1ab3d Popup visual changes
am: aa2272f81c

Change-Id: Iea60ed8675d7e71189f0536a85c506f524c97d73
2017-06-28 02:55:47 +00:00
Tony Wickham aa2272f81c Popup visual changes
- Don't remove elevation during animation (b/62905720)
- Other adjustments (b/35766387)
  - Add "gutter" between notification and shortcuts
  - Change shortcuts to always be primary color (e.g. white)
  - Scale down shortcut icons when notifications present
  - Apply icon extracted color to "Notifications" header

Change-Id: Idf791dc76d15d05d246000ad73810916d7cd1750
2017-06-27 19:43:18 -07:00
Rajeev Kumar 1d8d945020 Fix the logging tag to be 23 characters it was 24 characters.
Change-Id: I8ec490b34cf60b1fbeff43b732562627eb581d93
2017-06-27 17:20:34 -07:00
Rajeev Kumar 692aeec287 Close cursor after use in RestoreDbTaskTest.
Change-Id: I799fe29ecd602141cac61314c087e3154e12b102
2017-06-27 17:05:19 -07:00
Tony 22b8b36a2c Use dark nav bar for dark widgets sheet
am: d032d2cea4

Change-Id: I68ea1c07c636c2cf662d2112359b17e89eaf8081
2017-06-27 23:39:34 +00:00
Tony d032d2cea4 Use dark nav bar for dark widgets sheet
Bug: 62907264
Change-Id: I520a5ab7867363a68b5bc041a192d14d242ecaa2
2017-06-27 15:27:41 -07:00
Jon Miranda 72b85a3103 Merge "Grid change polish bugs." into ub-launcher3-dorval-polish
am: 184f018ea1

Change-Id: If4ccbbb74307d594882793c8c7eeb6a17b66f914
2017-06-27 22:20:34 +00:00
Mario Bertschler 60c1456472 All apps alpha mask asset for all densities.
Bug: 63008339
Change-Id: I4f0ccb9caea703901a2407d4e4eb6795515bfda9
2017-06-27 15:18:56 -07:00
TreeHugger Robot 184f018ea1 Merge "Grid change polish bugs." into ub-launcher3-dorval-polish 2017-06-27 22:14:45 +00:00
Jon Miranda fe14cf3532 Merge "Update cache version based on new icon sizes." into ub-launcher3-dorval-polish
am: fe5008c997

Change-Id: Ifd7f5e456a60a86206899a88c0de0183b45515fe
2017-06-27 22:06:30 +00:00
TreeHugger Robot fe5008c997 Merge "Update cache version based on new icon sizes." into ub-launcher3-dorval-polish 2017-06-27 21:59:14 +00:00
Jon Miranda 6cdc16cf84 Update cache version based on new icon sizes.
Change-Id: Ia82edd366cba19efbec0c1764484c51a976c5aa1
2017-06-27 14:04:01 -07:00
Rajeev Kumar 74ef41fec4 Some cleanups in IconCache class: 1. Make an instance variable final 2. Replace explicit type argument with <> 3. Get rid of an unnecessary return statement
am: ba9065cffd

Change-Id: I631e0e1891dc38aa217eb5c1b589ff9c0cbf3221
2017-06-27 20:24:19 +00:00
Rajeev Kumar ba9065cffd Some cleanups in IconCache class:
1. Make an instance variable final
2. Replace explicit type argument with <>
3. Get rid of an unnecessary return statement

Change-Id: Ifd0017e973c33a40d398fceb65125464f877ff56
2017-06-27 12:44:56 -07:00
Sunny Goyal c7b8df8329 Sanitizing various search container ids and layout names
Bug: 63014381
Change-Id: Ia75a8a048c7a85c6324f8861abd2bcf1721032fa
2017-06-27 11:11:32 -07:00
Jon Miranda b071637e1f Merge "Fix getAppPosition calculation since search divider removed from RV." into ub-launcher3-dorval-polish
am: 8db04610f9

Change-Id: I7b374d1a6a3586456cde5f1dc482f1a34bda2a51
2017-06-27 17:28:39 +00:00
TreeHugger Robot 8db04610f9 Merge "Fix getAppPosition calculation since search divider removed from RV." into ub-launcher3-dorval-polish 2017-06-27 17:22:05 +00:00
Adam Cohen 7c9b752ca0 Merge "Revert edge glow effect and restore damped overscroll" into ub-launcher3-dorval-polish
am: 89b5b918f0

Change-Id: Ib288b01e72198b7ae1835ec83e8c279a3a061f41
2017-06-27 16:46:36 +00:00
TreeHugger Robot 89b5b918f0 Merge "Revert edge glow effect and restore damped overscroll" into ub-launcher3-dorval-polish 2017-06-27 16:38:49 +00:00
Adam Cohen 8d769d6620 Revert edge glow effect and restore damped overscroll
Bug 62628421

Change-Id: Iab6ac567e98e63ade34de8817c3ae1f58c25ba19
2017-06-27 09:29:34 -07:00
Jon Miranda e309c6dc24 Fix getAppPosition calculation since search divider removed from RV.
The app position calculations were off by 1 since the search divider
used to be the first item in the RecyclerView.

Bug: 38349031
Change-Id: I8c161b940ec8015aab85b0aab94718e6fee8fcbd
2017-06-27 08:37:14 -07:00
Jon Miranda 3e04922204 Merge "Add overscroll w/ physics to All Apps." into ub-launcher3-dorval-polish
am: a80b184206

Change-Id: Ice8cd96031c33ec68d6b1a27b5212936b99b733b
2017-06-27 05:53:58 +00:00
TreeHugger Robot a80b184206 Merge "Add overscroll w/ physics to All Apps." into ub-launcher3-dorval-polish 2017-06-27 05:51:23 +00:00
Jon Miranda ad3194ec81 Add overscroll w/ physics to All Apps.
Bug: 62628421
Bug: 38349031

Change-Id: If3ba6dfbbd3a4b1c87e69df0066f801f963752aa
2017-06-26 22:45:53 -07:00
Hyunyoung Song 2bdce730e6 Merge "Bitmap resource should not be scaled on lower density devices Bug: 63008339" into ub-launcher3-dorval-polish
am: 71d94efcfb

Change-Id: I8d10acfa8b95599e1f77cd308f67dd162ae2bb73
2017-06-27 00:25:37 +00:00
TreeHugger Robot 71d94efcfb Merge "Bitmap resource should not be scaled on lower density devices Bug: 63008339" into ub-launcher3-dorval-polish 2017-06-27 00:19:33 +00:00
Rajeev Kumar 8a0f7ab68d Merge "Replace use of java.util.HashMap with android.util.ArrayMap in AddWorkspaceItemsTask class Bug: 62466540" into ub-launcher3-dorval-polish
am: d392255539

Change-Id: Ie1b893b0bfda5e73c493c85a86dd5c44cbbae0cc
2017-06-26 23:57:10 +00:00
Rajeev Kumar d392255539 Merge "Replace use of java.util.HashMap with android.util.ArrayMap in AddWorkspaceItemsTask class Bug: 62466540" into ub-launcher3-dorval-polish 2017-06-26 23:53:09 +00:00