Merge "Improve resource loading by ~3x" into mnc-dev
This commit is contained in:
@ -603,7 +603,7 @@ public class ColorStateList implements Parcelable {
|
||||
* @hide only for resource preloading
|
||||
*/
|
||||
public ConstantState<ColorStateList> getConstantState() {
|
||||
if (mFactory != null) {
|
||||
if (mFactory == null) {
|
||||
mFactory = new ColorStateListFactory(this);
|
||||
}
|
||||
return mFactory;
|
||||
|
@ -1918,6 +1918,7 @@ public class Resources {
|
||||
other.mResId = mResId;
|
||||
other.mForce = mForce;
|
||||
other.mCount = mCount;
|
||||
other.mHashCode = mHashCode;
|
||||
return other;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user