Commit Graph

6825 Commits

Author SHA1 Message Date
TreeHugger Robot 155384dad8 Merge "Fixing legacy shortcuts which only specify packageName in the intent dont get restored on apk install." into ub-launcher3-dorval-polish 2017-07-06 15:27:30 +00:00
Sunny Goyal 34ab6df435 Fixing legacy shortcuts which only specify packageName in the intent
dont get restored on apk install.

For various model update task, we only use targetComponent (unlike loader
where we all check packageName for legacy shortcuts).
This causes various shortcuts which only specity packageName in the intent
to get skipped during the check. Instead creating a pseudo component for
these shortcuts similar to IconCache

Bug: 62944669
Change-Id: I0aa0a4c15ef3ad88dc6cdd579a76315fb2ff780b
2017-07-06 08:20:18 -07:00
Jon Miranda 2ed276eb13 New calculation for page indicator size on tall devices.
For a display with a large aspect ratio, the icons can get too far
spread out in portrait mode. We remedy this by adjusting the page
indicator height to utilize that extra space.

Bug: 62801588
Change-Id: Ib717dd32a20918248b59e1b46b4e881d6d6a7cb5
2017-07-06 08:05:26 -07:00
TreeHugger Robot 6f031845ac Merge "Add overscroll to the top of All Apps." into ub-launcher3-dorval-polish 2017-07-05 23:03:53 +00:00
Hyunyoung Song 2528490500 Merge "Default icon should match platform one even on N and below devices. Bug: 63083094" into ub-launcher3-dorval-polish 2017-07-05 22:58:45 +00:00
Tony Wickham df5e2c1a74 Merge "Polish popup" into ub-launcher3-dorval-polish 2017-07-05 22:18:04 +00:00
Jon Miranda 2b35905ea7 Add overscroll to the top of All Apps.
* Overscroll at the top of all apps will occur when the user scrolls
  up, hits the top, and continues to scroll up.
* Fixed bug where All Apps jumps when the user enters overscroll
  from a scroll that doesn't start at the bottom.
* Fix bug where AllAppsRecyclerView stays translated even after
  the user has finished dragging.

Bug: 62628421
Change-Id: Ia1d230a7cc07a7cf8c1a7c5211a025034ae5f6df
2017-07-05 14:58:34 -07:00
TreeHugger Robot 2d8f6f0050 Merge "Fixing preview for newly created folder not getting clipped properly." into ub-launcher3-dorval-polish 2017-07-05 20:16:22 +00:00
Hyunyoung Song b8ae2dd2af Default icon should match platform one even on N and below devices.
Bug: 63083094

Change-Id: Ie08ccaf63a49fa766f0d51d840d7763fc4bf2a5a
2017-07-05 13:10:17 -07:00
Tony 45cdfa78d4 Polish popup
- Remove divider between system shortcut header and shortcuts
- Slightly reduce padding between popup and icon
- Fix gravity to center in drag layer using x and y calculations since
  we use the y value to position the popup when removing notifications

Change-Id: I1cb10ed953d11cc0924d8ee70881a434cb748317
2017-07-05 12:32:16 -07:00
Tony Wickham 35005ef213 Merge "Don't enter overscroll when dragging fast scrollbar." into ub-launcher3-dorval-polish 2017-07-05 17:49:57 +00:00
Tony 200352ca4e Don't enter overscroll when dragging fast scrollbar.
Bug: 63298293
Change-Id: Id3a6551df265c5a92ce5da6509fdac60fb44fcb7
2017-07-05 10:36:33 -07:00
Mario Bertschler c3f7664475 Merge "Settings: only replace content with new fragment if it has no saved instance state." into ub-launcher3-dorval-polish 2017-07-05 17:28:53 +00:00
Sunny Goyal 5247f5b05a Fixing preview for newly created folder not getting clipped properly.
When a new folder was created, isClipping was set to false so that the stroke is
drawn behind the previewItems, but it was never reset to true.

Bug: 37654209
Change-Id: I03e94008dd19d8c5a0acb61207ebac33860fdf1d
2017-07-04 14:23:41 -07:00
Sunny Goyal 2348796e36 Merge "Fixing clip mask not getting initialized properly." into ub-launcher3-dorval-polish 2017-07-04 20:32:56 +00:00
Sunny Goyal bc1d0774aa Fixing clip mask not getting initialized properly.
Before initializing the clip mask, we were calling iconNormalization on
the adaptive icon which was changing the bounds of the drawable (only for
the first call). Instead setting the bounds of the drawable after icon
normalization.

Bug: 63010770
Change-Id: I028d1e38a0d8c4001286d343e107637cf307c4a4
2017-07-04 12:51:02 -07:00
Tony Wickham 94e9d53728 Merge "Ensure mCurrentPage is valid after page is removed" into ub-launcher3-dorval-polish 2017-07-04 18:42:23 +00:00
Tony a361c7204f Ensure mCurrentPage is valid after page is removed
Specific case this addresses: removing work profile
- Removing work profile causes workspace to be rebound
- This means pages are removed and re-added
- As icons are added back to the pages, they use the
  context of the current page to ensure theming is
  correct (see ag/1919636)
- Without this change, the current page could be null,
  causing a crash. Now we make sure the index is valid.

Bug: 62699220
Change-Id: I0aa1d0c2c6150c51dacb2eb860e4dacd183b3505
2017-07-04 09:43:06 -07:00
TreeHugger Robot efbfcb838d Merge "Sanitizing various search container ids and layout names" into ub-launcher3-dorval-polish 2017-07-04 09:06:53 +00:00
Tony Wickham f593fb916e Merge "Use last saved icon if pinned shortcut is unpublished" into ub-launcher3-dorval-polish 2017-07-03 16:02:07 +00:00
Mario Bertschler 2de2d6781b Settings: only replace content with new fragment if it has no saved
instance state.

Bug: 63141698
Change-Id: Ifdaca42224199cfd8fdd2fc01c3760faecf35e2d
2017-06-30 18:51:46 -07:00
TreeHugger Robot ac648a9249 Merge "Add user event logging for page rearrangement and LEFT/RIGHT swipes 1. Call logOverviewRearrange logging call ONLY when the order actually changed 2. Call logActionOnContainer when containers are swiped. Bug: 32457561 Bug: 32457561" into ub-launcher3-dorval-polish 2017-06-30 21:18:10 +00:00
Hyunyoung Song 3f5a11f3a5 Add user event logging for page rearrangement and LEFT/RIGHT swipes
1. Call logOverviewRearrange logging call ONLY when the order actually changed
2. Call logActionOnContainer when containers are swiped.
Bug: 32457561
Bug: 32457561

06-30 11:23:04.082  6585  6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:04.082  6585  6585 D UserEvent:  Source child:WORKSPACE id=2
06-30 11:23:04.082  6585  6585 D UserEvent:  Elapsed container 50436 ms session 50436 ms action 0 ms
06-30 11:23:04.082  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:04.082  6585  6585 D UserEvent:  isInMultiWindowMode false

06-30 11:23:08.266  6585  6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:08.266  6585  6585 D UserEvent:  Source child:WORKSPACE id=1
06-30 11:23:08.266  6585  6585 D UserEvent:  Elapsed container 54620 ms session 54620 ms action 0 ms
06-30 11:23:08.266  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:08.266  6585  6585 D UserEvent:  isInMultiWindowMode false

06-30 11:23:10.742  6585  6585 D UserEvent: action:SWIPE direction=LEFT
06-30 11:23:10.742  6585  6585 D UserEvent:  Source child:WORKSPACE id=0
06-30 11:23:10.742  6585  6585 D UserEvent:  Elapsed container 57096 ms session 57096 ms action 0 ms
06-30 11:23:10.742  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:10.742  6585  6585 D UserEvent:  isInMultiWindowMode false

06-30 11:23:17.286  6585  6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:17.286  6585  6585 D UserEvent:  Source child:WORKSPACE id=-1
06-30 11:23:17.286  6585  6585 D UserEvent:  Elapsed container 63639 ms session 63639 ms action 0 ms
06-30 11:23:17.286  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:17.286  6585  6585 D UserEvent:  isInMultiWindowMode false
06-30 11:23:19.879  6585  6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:19.879  6585  6585 D UserEvent:  Source child:WORKSPACE id=0
06-30 11:23:19.879  6585  6585 D UserEvent:  Elapsed container 66233 ms session 66233 ms action 0 ms
06-30 11:23:19.879  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:19.879  6585  6585 D UserEvent:  isInMultiWindowMode false

06-30 11:23:23.811  6585  6585 D UserEvent: action:SWIPE direction=RIGHT
06-30 11:23:23.811  6585  6585 D UserEvent:  Source child:WORKSPACE id=1
06-30 11:23:23.811  6585  6585 D UserEvent:  Elapsed container 70165 ms session 70165 ms action 0 ms
06-30 11:23:23.811  6585  6585 D UserEvent:  isInLandscapeMode false
06-30 11:23:23.811  6585  6585 D UserEvent:  isInMultiWindowMode false


Change-Id: I11a48ee44aaa87863e76ccf2b46f499c28e96748
2017-06-30 13:59:38 -07:00
Hyunyoung Song 4d16982d42 Replace launcher3 default icon to match with the platform one.
Bug: 63083094

Change-Id: Ic77d443ee563959c2569263e2d9de7452fa8d26d
2017-06-30 11:46:42 -07:00
Tony Wickham 5fe66e3eef Use last saved icon if pinned shortcut is unpublished
Bug: 62814533
Change-Id: I683bd6abdf17defc55c0f17d8688951d4841c066
2017-06-29 18:49:22 -07:00
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