Commit Graph

6856 Commits

Author SHA1 Message Date
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
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
Sunny Goyal f5b4b80972 Fixing widget id restore broadcast.
Ignoring thw broadcast if its not for the main widget host, or if
the Launcher DB is already in use. Launcher already handles missing
widget-Id map broadcast, by binding a new widgetId at runtime.

Bug: 63389280
Change-Id: Iaa9774d6d7adde3711cba9615328020e2b2e66aa
2017-07-12 12:14:29 -07:00
yingrenw a9f4bffbfc Launcher3: Can't search out local app by Chinese
Description:
Chinese content type is Character.OTHER_LETTER.
When key matches,it check the content type. And
if type is Character.OTHER_LETTER, it doesn't
support search and break.

When the content type is Character.OTHER_LETTER,
make it work normally.

Bug: 63534074
Change-Id: I3713f24c9206fe16a8da2a23e6c90d68079dd533
2017-07-12 10:44:20 -07:00
Sunny Goyal c210f5b7ff Fixing bug where tapping home while going from page 0 to 1 does nothing
Bug: 63454716
Change-Id: Id8bd47388858b6eb866fa87b67307731c1aca2aa
2017-07-11 05:02:05 +00:00
TreeHugger Robot 65a2aa86db Merge "Mark off-screen pages as unimportant for accessibility" into ub-launcher3-dorval-polish 2017-07-11 01:01:26 +00:00
TreeHugger Robot 89c719e8a3 Merge "Enable to recreate icon with shadow without resizing it." into ub-launcher3-dorval-polish 2017-07-10 20:48:56 +00:00
TreeHugger Robot 077fdeb3c0 Merge "Do not run page snap animation if already on the default page" into ub-launcher3-dorval-polish 2017-07-10 20:05:39 +00:00
Sunny Goyal 5760ca1769 Do not run page snap animation if already on the default page
Bug: 63454716
Change-Id: Ibf3eea7f1b967c6e43042c87fd4545c03edf38e8
2017-07-10 12:52:27 -07:00
Mario Bertschler 080c37ecc1 Enable to recreate icon with shadow without resizing it.
Change-Id: I808eec78ff221adee72d0395e87c89150693f206
2017-07-10 12:36:31 -07:00
TreeHugger Robot 0946fc7af0 Merge "Supporting dark theme hint for wallpaper colors." into ub-launcher3-dorval-polish 2017-07-10 19:33:30 +00:00
TreeHugger Robot cebce95bac Merge "Slide in first page preview items in FolderIcon after Folder closes." into ub-launcher3-dorval-polish 2017-07-10 19:14:19 +00:00
Jon Miranda 27bdbcae7f Slide in first page preview items in FolderIcon after Folder closes.
If the Folder is not closed on on the first page, we animate the
current page items as if they are in the preview.

When the Folder finishes closing, the first page preview items
slide in as the current page preview items slide out.

Bug: 36022592
Bug: 35064148
Change-Id: I7ede7ed9e091e2a0c3cbe11731744bfe9ce36595
2017-07-10 11:28:57 -07:00
Mario Bertschler e5f4939cba Supporting dark theme hint for wallpaper colors.
Bug: 63143283
Change-Id: I0815d22215409d781348d74baace8cb5d1e15fb8
2017-07-10 11:17:55 -07:00
Sunny Goyal 848cad56ce Adding a warning button when notification access is not available
Bug: 63418030
Change-Id: I4c2c497d989902ac002314a3b8fb97083757958b
2017-07-10 11:10:35 -07:00
Jon Miranda 6c5d10261e Move the PreviewItem drawing/animation logic to PreviewItemManager.
We want this refactor in O-DR since we will be adding more animations:
- closing from a non-first page (ag/2455887 b/36022592)
- new on-drop animations *if we end up removing the permutation logic.

Bug: 36022592
Change-Id: I82b8f5f5033d4fd9bd50fbe414b0fb721891d043
2017-07-06 12:20:56 -07:00
Tony 6dea7cddf9 Mark off-screen pages as unimportant for accessibility
ag/2458689 reduced page spacing, making it possible for
adjacent pages to overlap the current viewport. Though
you can't see this overlap due to paddings, this caused
items on the edges of adjacent pages to be focusable in
accessibility.

Bug: 63335071
Change-Id: I1296e7a711e2f0af8fc8bedda70a94a7693c7055
2017-07-06 11:32:53 -07:00
TreeHugger Robot e393c809e6 Merge "Salt packageNameHash with unique user identifier Bug: 62676166" into ub-launcher3-dorval-polish 2017-07-06 18:06:28 +00:00
TreeHugger Robot 2d275f7156 Merge "Only draw double shadows of BubbleTextView if both shadow color's alpha value is non-zero." into ub-launcher3-dorval-polish 2017-07-06 17:32:44 +00:00
Mario Bertschler bbc139188a Only draw double shadows of BubbleTextView if both shadow color's alpha
value is non-zero.

Bug: 63331170
Change-Id: Ia9f06c1d6fb217d264cece805826faf123e9d5f3
Signed-off-by: Mario Bertschler <bmario@google.com>
2017-07-06 10:23:55 -07:00
Hyunyoung Song 5a1ab2ef85 Salt packageNameHash with unique user identifier
Bug: 62676166

Change-Id: I10b301b50e0198aeb52c1c437b9a84aaf323ef66
2017-07-06 10:05:07 -07:00
TreeHugger Robot 5c9e831264 Merge "Keep gutter aligned when removing notification footer" into ub-launcher3-dorval-polish 2017-07-06 15:35:49 +00:00
Tony 67a25b3c4d Keep gutter aligned when removing notification footer
Bug: 63262764
Change-Id: I94e7978dafc04fc2673a9bb8c6d24ff20641416f
2017-07-06 08:28:33 -07:00
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