Commit Graph

6799 Commits

Author SHA1 Message Date
TreeHugger Robot
20c55b0e87 Merge "Folder animation polish." into ub-launcher3-dorval-polish 2017-06-29 22:35:35 +00:00
Hyunyoung Song
393dcd914b Merge "Revert "Salt the package hash code using the device serial Bug: 62676166"" into ub-launcher3-dorval-polish 2017-06-29 22:10:06 +00:00
Hyunyoung Song
ef6746bc65 Revert "Salt the package hash code using the device serial Bug: 62676166"
This reverts commit e8ca28179b.

Change-Id: I9fd51321d671d5ff90c7bfaddc05fc6ba11018e3
2017-06-29 22:09:16 +00:00
Tony
d6573ed128 Tweak popup animation
- Decrease duration
- Add alpha fade in and out
- Remove arrow scale when closing, so that
  the reversal happens immediately

These changes help the popup feel snappier while also reducing
visual jank when moving icons (as the animation accelerates in
later and the alpha stays close to 0).

Bug: 62738635
Change-Id: Ic8af4e0e5bc00913ea713853997069e8b9c8f953
2017-06-29 13:43:35 -07:00
TreeHugger Robot
6f7f4bb97e Merge "Salt the package hash code using the device serial Bug: 62676166" into ub-launcher3-dorval-polish 2017-06-29 20:24:18 +00:00
Hyunyoung Song
e8ca28179b Salt the package hash code using the device serial
Bug: 62676166

Change-Id: Id723cc3f283bc05b01185abef9084d6dbd75fbbc
2017-06-29 13:16:52 -07:00
Jon Miranda
de0ea81442 Folder animation polish.
* Use different interpolators so that the prevew items in large folders
  appear aligned with the rest of the folder contents longer (the
  preview item movements are less jumpy).
* Fixed animation elevation on close.

Bug: 63131666
Bug: 35064148
Change-Id: Iecb1a8d3105e630ee00b3ea4b692979efb928d7d
2017-06-29 09:34:17 -07:00
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
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
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
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
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
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
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
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
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
Tony
d032d2cea4 Use dark nav bar for dark widgets sheet
Bug: 62907264
Change-Id: I520a5ab7867363a68b5bc041a192d14d242ecaa2
2017-06-27 15:27:41 -07:00
TreeHugger Robot
184f018ea1 Merge "Grid change polish bugs." into ub-launcher3-dorval-polish 2017-06-27 22:14:45 +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
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
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
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
ad3194ec81 Add overscroll w/ physics to All Apps.
Bug: 62628421
Bug: 38349031

Change-Id: If3ba6dfbbd3a4b1c87e69df0066f801f963752aa
2017-06-26 22:45:53 -07: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
Sunny Goyal
b647302a90 Merge "Updating fast scrollbar UI in Landscape" into ub-launcher3-dorval-polish 2017-06-26 22:11:27 +00:00
TreeHugger Robot
f729eb5291 Merge "Fix Folder text animation bugs." into ub-launcher3-dorval-polish 2017-06-26 22:01:08 +00:00
Sunny Goyal
89d5c5a31b Updating fast scrollbar UI in Landscape
Creating a separate view for FastScrollBar and moving all the relavant logic in
the view.
For protrait, the touch handling is delegated by the recycler view just like before.
For landscape, the dcrollbar does not overlay with recyclerView and handles the touch
itself

Bug: 37015359
Change-Id: Ie1981326457ba739bdf0ac8063db1065f395f133
2017-06-26 14:56:36 -07:00
Mario Bertschler
bbe504d24d Merge "Switching to dark color in color extraction algorithm." into ub-launcher3-dorval-polish 2017-06-26 21:47:20 +00:00
Tony Wickham
7a0ec3f28c Merge "Add dark widgets theme" into ub-launcher3-dorval-polish 2017-06-26 21:34:59 +00:00
TreeHugger Robot
3ed3076550 Merge "Fixing drag outline not getting drawn when the shortcuts popup is shown." into ub-launcher3-dorval-polish 2017-06-26 21:14:13 +00:00
Jon Miranda
1d9cc32475 Fix Folder text animation bugs.
* The Folder text was not getting reset back to visible on close.
* DoubleShadowBubbleTextView now draws the shadow using the
  alpha of the current text.

Bug: 62967568
Bug: 35064148
Change-Id: Iea3e5275b6878fc362150e99a225ff700b946f44
2017-06-26 11:43:58 -07:00
Jon Miranda
c7aa37d696 Animate Folder elevation halfway thru transition.
The current implementation had the Folder elevation animate in
after the Folder transition was done completing. To make it appear
more smooth, we animate the Folder elevation halfway thru the
transition.

We will keep the separate FolderIcon shadow fade-in animation on
the closing transition otherwise the shadow will be apparent in the
"preview."

Bug: 62787582
Bug: 35064148
Change-Id: Ifd3d84214b0600b6651005c8e65d90b0d8ade422
2017-06-26 11:31:33 -07:00
Hyunyoung Song
1322f9cb9a Fixing drag outline not getting drawn when the shortcuts popup is shown.
Shortucts popup uses predrag listener to manage the transient state of
the icon. Fixing the order of PredragListener, such that predragEnd gets
called before dragStart. This allows the transient state to be cleared
before any other state changes are done by onDragStart.

Bug: 62544416
Change-Id: I77c9a1aa17a15fe6f9f342af7a7fe3092a9d026b
2017-06-26 11:25:01 -07:00
Mario Bertschler
313fc8aa1f Switching to dark color in color extraction algorithm.
Bug: 62903659
Change-Id: Ibd65cb75ee6d74bde20e35d570a505ec8f4b4617
2017-06-26 11:10:18 -07:00
Tony Wickham
093c3ac7c3 Add dark widgets theme
Bug: 62907264
Change-Id: I9831e071eab9a746d1aacab7d023371cc4a631ef
2017-06-26 17:50:29 +00:00
Jon Miranda
cb73920b23 Move inner classes out of FolderIcon.
The goal is to eventually move all of the PreviewBackground and
Preview Item drawing out of the FolderIcon class.

Bug: 36022592

Change-Id: Ie0552bb4ca8a7e232c1c454a23558940e9394a14
2017-06-25 21:29:35 -07:00
Jon Miranda
72b5fd186e Grid change polish bugs.
- Folder icons were too small in landscape.
- Folders can now be 16dp away from the edge
  (used to be 64dp which resulted in super small folders)
- Decrease page spacing back to 8dp
- Decrease PreviewBackground accept scale factor since
  hotseat is now generally smaller.

Bug: 37014334
Bug: 37015359
Change-Id: Icbb53d34136bfdb93796d48f7379da6b9e214345
2017-06-25 18:15:29 -07:00
Rajeev Kumar
374d170f96 Merge "Few cleanups in Launcher.java: 1. Fix static member accessed via instance reference 2. Get rid of explicit type arguments 3. Make few instance variables final 4. Get rid of redundant 'public' modifier for interface methods 5. Get rid of an unnecessary return statement" into ub-launcher3-dorval-polish 2017-06-23 23:40:15 +00:00
Rajeev Kumar
cee3d8da28 Merge "Get rid of an unused import from AppsSearchContainerLayout class." into ub-launcher3-dorval-polish 2017-06-23 23:28:29 +00:00
Rajeev Kumar
43c0f58b08 Few cleanups in Launcher.java:
1. Fix static member accessed via instance reference
2. Get rid of explicit type arguments
3. Make few instance variables final
4. Get rid of redundant 'public' modifier for interface methods
5. Get rid of an unnecessary return statement

Change-Id: I3beec5ca14e61ed5cdd26b38c1273679c801acc2
2017-06-23 15:34:55 -07:00