You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Theme.obtainStyledAttributes() set theme of returned TypedArray
This is needed to infalte ColorStateLists properly
This commit is contained in:
@@ -1270,6 +1270,7 @@ public class Resources {
|
||||
int len = attrs.length;
|
||||
TypedArray array = getCachedStyledAttributes(len);
|
||||
array.mRsrcs = attrs;
|
||||
array.mTheme = this;
|
||||
mAssets.applyStyle(theme, 0, 0, null, attrs, array.mData, array.mIndices);
|
||||
return array;
|
||||
}
|
||||
@@ -1299,6 +1300,7 @@ public class Resources {
|
||||
int len = attrs.length;
|
||||
TypedArray array = getCachedStyledAttributes(len);
|
||||
array.mRsrcs = attrs;
|
||||
array.mTheme = this;
|
||||
mAssets.applyStyle(theme, 0, resid, null, attrs,
|
||||
array.mData, array.mIndices);
|
||||
if (false) {
|
||||
@@ -1392,6 +1394,7 @@ public class Resources {
|
||||
set, attrs, array.mData, array.mIndices);
|
||||
array.mRsrcs = attrs;
|
||||
array.mXml = parser;
|
||||
array.mTheme = this;
|
||||
if (false && set != null) { // TODO: set should probably never be null...?
|
||||
int[] data = array.mData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user