Merge "Improve resource loading by ~3x" into mnc-dev

This commit is contained in:
John Reck
2015-07-13 21:50:26 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -1918,6 +1918,7 @@ public class Resources {
other.mResId = mResId;
other.mForce = mForce;
other.mCount = mCount;
other.mHashCode = mHashCode;
return other;
}
}