Commit Graph

3 Commits

Author SHA1 Message Date
Fan Zhang
5efaa86a8d Catch NPE and add more logging for a crash in Tile
Fixes: 131648303
Test: robotests
Change-Id: I879aad929b9620607612eb3456545ac2a8050ccc
2019-04-30 13:34:04 -07:00
lindatseng
fff2b19e56 Fix tinting on injected pref icon in Tile
We used to tint the icon when refreshing Tile.  However, when we getIcon
from Tile, we get the icon directly from the icon resource but not the
copy of the tinted icon.  The tinting was not honored in this case.

Do a little refactor in this cl to tint the icon in Tile.getIcon
instead.

Test: Manual/Visual inspection, robotests
Fixes: 129010399
Change-Id: I88c9b00046534d8b9ddedce9009a6e340d42fca6
2019-04-02 16:29:04 -07:00
hughchen
ed6a4d2829 Separate library from SettingsLib
Separated library for following class:
- AdaptiveIcon.java
- AdaptiveIconShapeDrawable.java
- AdaptiveOutlineDrawable.java
- TileUtils.java
- DashboardCategory.java
- Tile.java

Bug: 128570540
Test: RunSettingsLibRoboTests
Change-Id: I616e68f6e5ac9afee805793e80374aabebc69ccb
2019-03-29 11:29:04 +08:00