commit | 7ba840071f97078dd7e39a9c3ea91c7693572c89 | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Fri Nov 12 12:13:41 2021 +0000 |
committer | Jerome Gaillard <jgaillard@google.com> | Fri Nov 12 13:50:53 2021 +0000 |
tree | 88cba2b07135289aa0286cd69d407434fc6a422c | |
parent | 6ec3b513c50afdb22cf6a5958cb65de97e71b269 [diff] |
Check for null state before adding drawable to cache Some drawables can have a null ConstantState. Check before attempting to add them to the cache, as the LRU does not accept null values. Bug: N/A Test: N/A Change-Id: I9db20ab8f4a2e8fbbb32d9e9fc7a435482878369 (cherry picked from commit bce755f4990ad48da7b6f5079e8b0ff26c51c88c)