Commit Graph

20 Commits

Author SHA1 Message Date
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