Sunny Goyal
038e454df6
Using the task primary color as the background for the wrapped icon
...
Bug: 74445840
Change-Id: I6c6248c8c71cc9b27cbf301e36400a983127da18
2018-03-13 09:35:54 -07:00
Sunny Goyal
61e084601e
Adding implementation of InstantAppResolver for quickstep
...
> Badging instant apps properly in recents
> Routing drawable creation using Drawable factory
Bug: 31282621
Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
2018-03-07 15:36:10 -08:00
Sunny Goyal
f3efc25862
Using public APIs for hardware bitmaps
...
Bug: 35428783
Change-Id: I4e7eeaa94e0cdfb1c76dce507a6f855e4eebbd6c
2018-03-06 15:16:21 -08:00
Derek Sollenberger
26a1b452f4
Stop using deprecated Canvas APIs.
...
Bug: 73777445
Test: compile
Change-Id: Ic0a1f4ebc10ba46229fd97408c052c0b450b4945
2018-03-01 04:39:57 +00:00
Mario Bertschler
7662a3e917
Enabling to retrieve a badge-package as an extra in ShortcutInfoCompat for
...
whitelisted package.
> badging respects the badge-package extra
Change-Id: I4e06cd497dff91949f8b0a42c7f3d5aaa724c038
2018-01-16 11:29:34 -08:00
Sunny Goyal
18a4e5aefb
Making LauncherIcons thread safe
...
Creating a pool of LauncherIcons so that they can be used from multiple threads
Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-09 17:30:52 -08:00
Sunny Goyal
179249d804
Dominant color is part of icon cache
...
> Calculating extracted color during icon generation and storing it in model and DB
> Removing unused logic avoid various types of badge rendering
> Icons are badged with extracted colors, while folder is badged with theme color
Bug: 35428783
Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2018-01-03 16:55:58 -08:00
Sunny Goyal
9d32323cac
First pass at using hardware bitmaps
...
Bug: 35428783
Change-Id: Ife67b85f6e7e268826597ed9bccd9659841f67de
2017-12-13 13:36:36 -08:00
Sunny Goyal
ce4fa5f33b
Fixing wrong packageName being used for loading icons
...
Bug: 68796720
Change-Id: I9b0da050ead0fe5bf40de0e0d87949bda50be699
2017-11-03 11:44:16 -07:00
Sunny Goyal
ad7ff44009
Unifying various icon loading methods
...
Change-Id: I5a8969b6aad6513d769b5bb38bf95a701fe346d8
2017-09-13 11:56:55 -07:00
Hyunyoung Song
e24cb63b81
WallpaperManagerCompat should target correct platform
...
Also replace Utilities.isAtLeastO() to static final constant.
Bug: 65544683
Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
2017-09-11 12:17:09 -07:00
Mario Bertschler
8ff9e1d679
Integrating suggested app by handling new status flags for shortcut items.
...
Guarded via feature flag SUGGESTED_APP.
Bug: 62483883
Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
2017-08-24 12:23:06 -07:00
Tony
a8ccf09597
Use deep shortcuts' icons as a fallback when updating
...
We already do this when loading, but now we also do it when
getting callbacks that potentially change the shortcut icon.
These callbacks first check the pinned shortcut info, but if
there is no icon there we now fall back to the current icon
instead of the default icon.
Bug: 62814533
Change-Id: I777adedf4b7f93dbaddb98a993eda34d59dcc173
2017-07-28 18:11:06 -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
3fede16f22
Merge "Do not apply legacy treatment on shortcuts Bug: 62617041" into ub-launcher3-dorval-polish
2017-06-22 19:21:27 +00:00
Hyunyoung Song
d84f771f75
Do not apply legacy treatment on shortcuts
...
Bug: 62617041
Change-Id: I56a04536fe1bcba9912c5da3ce5a9c9b75bc3506
2017-06-22 11:49:33 -07:00
Sunny Goyal
a2fde430b5
Enabling spring effect during drag-n-drop on deep shortcuts
...
Change-Id: Iac128e850c41c0946d28e1ee8824ce8a62b4c395
2017-06-21 14:42:38 -07:00
Hyunyoung Song
9279496e54
Prevent clipping on the top and left side on AdaptiveIconDrawables
...
b/62372639
Change-Id: I0b2c0daecba2904f3e89f7b0b558d9b10f5dcbf6
2017-06-06 13:21:11 -07:00
Hyunyoung Song
8f4a3963b0
Guard aginast O for checking AdaptiveIconDrawable
...
b/37952598
Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9
2017-05-03 15:39:26 -07:00
Hyunyoung Song
9cb48d4a38
When creating bitmap, do not apply width/height ratio if AdaptiveIconDrawable
...
b/37670867
Change-Id: I60884c52e7eb4b2d6f0ae2a5dc8e7c730f1f2454
2017-04-27 14:19:58 -07:00
Hyunyoung Song
7ed6101218
Only apply legacy treatment on app icons that is targeting O
...
For shortcuts, always apply legacy treatment.
b/37357483
Change-Id: I45f373ee0bb9436bc5029c88855ecb80b93fe277
2017-04-26 13:45:54 -07:00
Hyunyoung Song
c1cf75716b
[DO NOT MERGE] legacy icon treatment / circle detection
...
Bug: 37357483
Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395
2017-04-16 21:57:58 -07:00
Hyunyoung Song
830cca665c
[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
...
b/36702964
Change-Id: I28d460eee6de84cd74866223b92d43274d64d334
2017-04-05 15:20:00 -07:00
Hyunyoung Song
d02a29a502
Shadows should not be clipped on AdaptiveIconDrawable
...
b/36702964
Change-Id: Ic7363196aa493b4aa6a2dffa9c3e8f3399b1b3f3
2017-04-05 13:15:13 -07:00
Hyunyoung Song
61d351fe82
Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval
2017-03-03 21:16:37 +00:00
Hyunyoung Song
837eb1f47d
Change application launcher icons to adaptive icons
...
b/35429795
Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08:00
Hyunyoung Song
12584781e4
[DO NOT MERGE] Add shadow to Adaptive Icons
...
Bug: 35920618
Change-Id: Ib48a656f988d1f007c32ab15cb28d120fab1e94f
(cherry picked from commit da9ac1f01a )
2017-03-02 22:36:02 +00:00
Hyunyoung Song
42c9434346
Hide legacy icon treatment behind a flag.
...
Change-Id: I662f1317945e6dd175fd03dbabc264e45c18dcee
2017-02-14 09:23:30 -08:00
Sunny Goyal
96ac68a481
Updating the PreloadIconDrawable
...
> The drawable gets the path from MaskIconDrawable path, instead of
using a circle
> The progress changes are animated as well
Bug: 34831873
Change-Id: I4e7f0b610f4fd94de8e0cfcf8b179b775cf0b4d8
2017-02-06 10:43:27 -08:00
Hyunyoung Song
ea383c312c
Changes required to use MaskableIconDrawable inside Launcher3
...
This CL will bake the legacy icons inside a grey background
Note: There will be follow up CL to change the color and shadow of the
legacy icon. The idea of this CL is to first test if MaskableIconDrawable
methods and class work properly.
Bug: 32063838
Bug: 33553066
Change-Id: I3d02e619fcb0cd9879baa22a025b5d95c829f26c
2017-01-30 12:18:08 -08:00
Sunny Goyal
1b0726359b
Moving icon generation out of ShortcutInfo constructor so that it
...
can be created on the UI thread
Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
2017-01-18 11:30:59 -08:00
Hyunyoung Song
e495056bd3
Merge "Use MaskableIconDrawable only in dogfood builds" into ub-launcher3-master
2017-01-13 01:34:03 +00:00
Hyunyoung Song
9a5203a539
Use MaskableIconDrawable only in dogfood builds
...
Bug: 32063838
Change-Id: Id0d15c4fff54b9429dbe5f9ee7ef26fd9cf8703d
2017-01-12 17:09:12 -08:00
Sunny Goyal
87f784c285
Removing static Context access using LauncherAppState
...
> This ensures that LauncherAppState is only accessed in the presence of
a valid context
Bug: 33032833
Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
2017-01-11 12:52:03 -08:00
Sunny Goyal
aaf86fe9a0
Refactoring some loadWorkspace logic in a separate class
...
Bug: 34112546
Change-Id: I8a43ed1646056aa1957ac3d6ea82018691df6386
2017-01-10 13:53:50 -08:00
Sunny Goyal
a52ecb0390
Removing all compatibility code below Lollipop
...
Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
2016-12-16 15:05:09 -08:00
Sunny Goyal
7c74e4ae64
No more UserHandleCompat
...
Bug: 32745285
Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
2016-12-15 22:06:10 -08:00
Sunny Goyal
1cd01b023a
Ensuring that ShortcutInfo always has an icon
...
> Making iconBitmap public instead of a getter (similar to AppInfo)
> Removing getIcon() which can lead to IO on UI thread
> Removing updateIcon and handling the update at the caller
Bug: 21325319
Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
2016-12-13 10:31:12 -08:00
Sunny Goyal
10629b077c
Moving some image handling classes to .graphics package
...
Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
2016-09-02 12:34:33 -07:00