diff options
author | Winson <chiuwinson@google.com> | 2019-01-17 16:47:36 -0800 |
---|---|---|
committer | Winson <chiuwinson@google.com> | 2019-01-18 12:11:55 -0800 |
commit | 9653d66a75805216bcbf709559a7e9e4cafb1b6a (patch) | |
tree | 9733350b46773c7471e1e839cd02b6fffe3964c2 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 34478fc96cf1565799a32ba48bf69e9726139185 (diff) |
Fallback to regular XML Drawable if ColorStateList loading fails
Before ag/4829987, if a drawable.xml was misplaced in res/color, but was loaded as a drawable, ResourcesImpl would correctly load it as drawable instead of a color.
Post those changes, the file name is checked, and all res/color files are forcibly loaded as colors. This adds a fallback such that if loading as color fails, an attempt is made to load as a normal drawable.
Bug: 122025886
Test: validated using test application loading layer-list inside res/colors
Change-Id: Ieed9b4d22bc85fdc7390de700fad7b03c9aad511
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions