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
|
* @hide only for resource preloading
|
||||||
*/
|
*/
|
||||||
public ConstantState<ColorStateList> getConstantState() {
|
public ConstantState<ColorStateList> getConstantState() {
|
||||||
if (mFactory != null) {
|
if (mFactory == null) {
|
||||||
mFactory = new ColorStateListFactory(this);
|
mFactory = new ColorStateListFactory(this);
|
||||||
}
|
}
|
||||||
return mFactory;
|
return mFactory;
|
||||||
|
@ -1918,6 +1918,7 @@ public class Resources {
|
|||||||
other.mResId = mResId;
|
other.mResId = mResId;
|
||||||
other.mForce = mForce;
|
other.mForce = mForce;
|
||||||
other.mCount = mCount;
|
other.mCount = mCount;
|
||||||
|
other.mHashCode = mHashCode;
|
||||||
return other;
|
return other;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user