| commit | 3ed4cc2d53a618021496fb805d6128452c920a1d | [log] [tgz] |
|---|---|---|
| author | Jerome Gaillard <[email protected]> | Thu Oct 15 19:11:36 2020 +0100 |
| committer | Jerome Gaillard <[email protected]> | Mon Oct 19 10:26:27 2020 +0000 |
| tree | 7dfc208650899a867364ab4617262b57aa56de15 | |
| parent | 84ef3fec241f929c9261e3a6082c1a4654476688 [diff] |
Add a check on color format to avoid exceptions When resolving a resource that can be a color or something else, check whether the value starts with '#' before attempting to parse it as a color. That will avoid unnecessary exceptions when the resource is not a color. Bug: 146040183 Test: existing tests Change-Id: I7f5d23e50dd881939273e6bc28b61f4d9e45b872