Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Keep original 'IDs' around for string/file resource values #990
The Android on-device implementation for TypedValue uses the underlying data value as a cache key in various places (ie: the Drawable cache in Resources). This allows it to ensure that the various configuration versions of a resource don't overwrite each other in the cache without having to compute a hash each time.
For projects where interacting with these on-device caches is important, we need a way to extract the raw version of the ResFileValue's data, ie: the index passed to mTableStrings to look up the string value in ARSCDecoder.java:
I can provide a patch for this if it's something you'd accept.