OSDN Git Service

Cache XML blocks against file name rather than resource ID
authorAlan Viverette <alanv@google.com>
Wed, 6 Jan 2016 20:27:35 +0000 (15:27 -0500)
committerAlan Viverette <alanv@google.com>
Wed, 6 Jan 2016 20:27:35 +0000 (15:27 -0500)
commit10979613899ca3963c7d64d25d5f8ef7db1dde84
tree3f78ddc135b202f304bb7f2d94c2aa2c9a3fd555
parentf43f627fc97e70d79345192654c65ba87f0a4efb
Cache XML blocks against file name rather than resource ID

Caching against resource ID leads to incorrect cache hits, since multiple
files (ex. within drawable-mdpi, drawable-ldpi) may map to the same ID.

Also adds nullability annotations.

Bug: 26400880
Change-Id: I4d83caf3c44dc9b546511753e9e72171e8850eb2
core/java/android/content/res/Resources.java