summaryrefslogtreecommitdiffstats
path: root/iconloaderlib
Commit message (Collapse)AuthorAgeFilesLines
* Scale Icon badges for shortcut and widgetsSamuel Fufa2019-10-041-1/+11
| | | | | | Test: Manual Bug: 141262820 Change-Id: I03edc986e3fe1876b6b7ed179b96864d587cb137
* Revert "Revert "Revert "cache shourtcut image"""Pinyao Ting2019-10-012-10/+2
| | | | | | | | This reverts commit d13f0c5c45550bffc335f47f1a0c545df68c0584. Reason for revert: app crashes when adding widgets automatically b/141568904 Change-Id: I5b97f440716c93b1bd93c899e3e1d40e8bbd2885
* Exclude shortcuts in popup from IconCache.Pinyao Ting2019-09-202-10/+9
| | | | | | | | We want to load from/save icons to icon cache for pinned shortcuts only to reduce memory footprint. Bug: 140242324 Change-Id: I25c7d59e29c6e27752b36c2c3c226849d4e177af
* fix the issue update handler tries to cache a shortcut without validPinyao Ting2019-09-161-0/+4
| | | | | | bitmap. Change-Id: Ie400fdb811928015903319eed69879de1728539a
* Revert "Revert "cache shourtcut image""Pinyao Ting2019-09-162-3/+11
| | | | | | | | | This reverts commit f3d58f1f84192a0446ba3bf2fcfd773ad538bdde. Reason for revert: Rolling forward for development and fixes. Bug: 140242324 Change-Id: I954cface2e50a5a9a5e143d2ea29fbcebb298ede
* Revert "cache shourtcut image"Pinyao Ting2019-09-162-11/+3
| | | | | | | | | | | | | This reverts commit 050f9b1279d924d211ba8572876e9ada55a541f0. Reason for revert: Test failure on ub-launcher3-master (b/140998509) Possible Root Cause: This happens when fallback image or default icon was used for shortcut icon, but shortcut caching logic do not have the logic to create either fallback image or default icon. So upon updating icon cache, the icon remains to be null, causing an NPE. Change-Id: I1ee3bb7a3cab2af5730c2ee77d9370c1578a9ad6
* cache shourtcut imagePinyao Ting2019-09-122-3/+11
| | | | | | | | | | | | | Deep shortcuts now supports icon cache. When workspace is being loaded, we will now attempt to load deep shortcuts from memcache/db. The icon for deep shortcuts loaded in the workspace is saved to memcache/db after the workspace is loaded. Bug: 140242324 Change-Id: I49da8319ad203476fe1e45683e2848dbde3473f2
* Adding support for storing keywords in iconCacheSunny Goyal2019-08-072-37/+65
| | | | Change-Id: I1183e63a6556ebfb3eee5df23d149e09728193a9
* Guard against NPE inside BaseIconFactoryHyunyoung Song2019-07-181-4/+8
| | | | | | | | | | | Bug: 137253043 This is a bandage fix. Ideally, we should really figure out why TaskIconCache will be sending null icon drawable to BaseIconFactory. Change-Id: Ie005006baeddc9a3379283fe7139e590daad9a57
* Using a common gradle dependency pathSunny Goyal2019-06-211-16/+0
| | | | Change-Id: If01b0d7ebd6719935ac467a5f085b0517b133bbc
* Dot location gettersLyn Han2019-06-201-0/+8
| | | | | | | | For use by SystemUI-Bubbles flyout-to-dot animation Bug: 129158983 Test: manual (Bubbles dot looks good) Change-Id: I53287efcfe3e02b4ba0572d62f138cc52f7f66a6
* Add shape detection logic only for circle iconsHyunyoung Song2019-06-032-10/+116
| | | | | | b/119330044 Change-Id: I93042effa8417167d844f073275e8b941e861e60
* Always place notification dots directly on adaptive icon pathTony Wickham2019-05-061-25/+48
| | | | | | | | | | | | | | | | | - Calculate point on icon path nearest to top right corner, and use that as center for the dot - Cleanup code related to dot offset Test: Set each style (different icon shape) and verify dot is in correct placement for each of: - Folders - Icons in folders - Icons in all apps - Icons on workspace Bug: 124414511 Change-Id: I036ed3677e8af222f00d4fad4a36a7e4d9b49ad9
* Adding utility method to get adaptive icon scaleSunny Goyal2019-05-033-28/+73
| | | | Change-Id: I5ff190c3b794bb13309375782ccd420e85b59091
* Fix icon shape refresh for widgets list / legacy shortcut black bg issueHyunyoung Song2019-04-021-5/+1
| | | | | Bug: 118085499 Change-Id: Ifc3c711815567f40f109e95bcb76c01f23b4a3a2
* Assign default adaptive icon background colorHyunyoung Song2019-03-041-1/+1
| | | | | Bug: 126327184 Change-Id: I8c6db3cc0c2bf334862b60b0aa27aee4850039f1
* Merge "Prevent NPE inside iconloader library" into ub-launcher3-masterTreeHugger Robot2019-02-121-1/+3
|\
| * Prevent NPE inside iconloader libraryHyunyoung Song2019-02-121-1/+3
| | | | | | | | | | | | | | | | | | Bug: 120439430 Even though there is @NonNull annotation, customers may not respect this annotation. Change-Id: I01679d01f6920c3cc945c4abe757b907f150aa23
* | Increase icon cache versionHyunyoung Song2019-02-121-1/+1
|/ | | | | | | | | | Bug: 123939586 TL;DR;; For users that lost the change icon shape setting in home settings, their icons will start upgrading to circle resulting in inconsistent shapes. Change-Id: Ibe5f1cdcc39a6b8688c287f46bcc7d7b09302b27
* Using android Q sdk in gradleSunny Goyal2019-01-301-1/+1
| | | | Change-Id: I5476b64b5279b5333a6bb241e67f35bf81dfe830
* Changing min sdk to 25Sunny Goyal2019-01-294-48/+6
| | | | Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
* Updating folder shape when icon shape changesSunny Goyal2019-01-231-1/+5
| | | | | | | > Removing unnecessary threading logic and the code was running on main thread anyway Bug: 118757840 Change-Id: I7a012db5a0dbe2c23bd6ff2cd39679a803731ee8
* Make createIconBitmap public methodHyunyoung Song2019-01-081-11/+16
| | | | | | Bug: 122545624 Change-Id: I47ff6ec20f9d34856a727bdf3e328acee0db7f32
* Refresh icon cache when icon shape path has changedHyunyoung Song2019-01-041-1/+1
| | | | | | | | | | | Bug: 120505990 $ adb shell cmd overlay enable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay disable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay enable --user 0 com.android.theme.icon.teardrop $ adb shell cmd overlay disable --user 0 com.android.theme.icon.teardrop Change-Id: I06663b9727f7434aae737d39977f1e6cf09bffbf
* Merge "Move BadgeRenderer to iconloader library" into ub-launcher3-masterTreeHugger Robot2018-12-011-0/+112
|\
| * Move BadgeRenderer to iconloader libraryTony Wickham2018-11-301-0/+112
| | | | | | | | | | | | | | - Rename BadgeRenderer to DotRenderer - Move drawing parameters to new class DrawParams - Add leftAlign param Change-Id: I69de56c13280ba5e7e1ea3868c23edfac01012e9
* | Fixing shortcut icons are not getting correct color extraction.Sunny Goyal2018-11-301-4/+4
|/ | | | | | | | > Avoiding color extraction for icons which have already be evaluated > Fixing color extraction from hardware bitmaps Bug: 111343544 Change-Id: I624866e892465684871fbc130003e32945d86460
* Adding reusable version of IconCache and IconFactorySunny Goyal2018-11-097-27/+301
| | | | | | | | | > Adding resource based allowing projects to control cache behavior > Fixing missing comments from ag/5470467 > Adding support for no-immemory cache Bug: 115891474 Change-Id: I691206805430cd93d3be78119bc249cefd79790a
* Moving BaseIconCache to icon libSunny Goyal2018-11-085-2/+989
| | | | Change-Id: I4fb56dcd6231a848d152e690edaf8885efbc995a
* Moving some utility classes to icon libSunny Goyal2018-11-076-0/+330
| | | | Change-Id: I0cc19ea02fb0732e9e1778a18c0d2c229232d179
* Removing some Launcher3 dependencies from BaseIconCacheSunny Goyal2018-11-061-0/+27
| | | | Change-Id: Ic80ed4a5cd2fc414cd6c27096d798e7f0b8efc72
* Replacing setAlphaComponent with setAlphaComponentBound for better animation ↵Sunny Goyal2018-11-063-9/+43
| | | | | | | | | | interpolation setAlphaComponent throws expetion for invalid range, which can cause brashes in overshoot interpolation Bug: 118390004 Change-Id: Ic9c5ff3d660eba353b982c4c47ccfaf329b3e296
* Fixing wrong directory pack for icon lib classesSunny Goyal2018-11-056-0/+0
| | | | Change-Id: Ic3690198b1c6204e322ba7b0f46ccef5dfa97181
* Create iconloader libraryHyunyoung Song2018-11-0213-0/+1180
Bug: 115891474 Test: Builds everything Change-Id: I1d75702d4e5a10d694eeb839784a629de2f74dd2