Loading core/java/android/content/res/ResourcesImpl.java +12 −9 Original line number Diff line number Diff line Loading @@ -912,7 +912,7 @@ public class ResourcesImpl { * first try to load CSL from the cache. If not found, try to get from the constant state. * Last, parse the XML and generate the CSL. */ @NonNull @Nullable private ComplexColor loadComplexColorFromName(Resources wrapper, Resources.Theme theme, TypedValue value, int id) { final long key = (((long) value.assetCookie) << 32) | value.data; Loading @@ -932,6 +932,7 @@ public class ResourcesImpl { complexColor = loadComplexColorForCookie(wrapper, value, id, theme); } if (complexColor != null) { complexColor.setBaseChangingConfigurations(value.changingConfigurations); if (mPreloading) { Loading @@ -942,6 +943,7 @@ public class ResourcesImpl { } else { cache.put(key, theme, complexColor.getConstantState()); } } return complexColor; } Loading Loading @@ -1044,7 +1046,8 @@ public class ResourcesImpl { * We deferred the parser creation to this function b/c we need to differentiate b/t gradient * and selector tag. * * @return a ComplexColor (GradientColor or ColorStateList) based on the XML file content. * @return a ComplexColor (GradientColor or ColorStateList) based on the XML file content, or * {@code null} if the XML file is neither. */ @NonNull private ComplexColor loadComplexColorForCookie(Resources wrapper, TypedValue value, int id, Loading Loading
core/java/android/content/res/ResourcesImpl.java +12 −9 Original line number Diff line number Diff line Loading @@ -912,7 +912,7 @@ public class ResourcesImpl { * first try to load CSL from the cache. If not found, try to get from the constant state. * Last, parse the XML and generate the CSL. */ @NonNull @Nullable private ComplexColor loadComplexColorFromName(Resources wrapper, Resources.Theme theme, TypedValue value, int id) { final long key = (((long) value.assetCookie) << 32) | value.data; Loading @@ -932,6 +932,7 @@ public class ResourcesImpl { complexColor = loadComplexColorForCookie(wrapper, value, id, theme); } if (complexColor != null) { complexColor.setBaseChangingConfigurations(value.changingConfigurations); if (mPreloading) { Loading @@ -942,6 +943,7 @@ public class ResourcesImpl { } else { cache.put(key, theme, complexColor.getConstantState()); } } return complexColor; } Loading Loading @@ -1044,7 +1046,8 @@ public class ResourcesImpl { * We deferred the parser creation to this function b/c we need to differentiate b/t gradient * and selector tag. * * @return a ComplexColor (GradientColor or ColorStateList) based on the XML file content. * @return a ComplexColor (GradientColor or ColorStateList) based on the XML file content, or * {@code null} if the XML file is neither. */ @NonNull private ComplexColor loadComplexColorForCookie(Resources wrapper, TypedValue value, int id, Loading