Loading core/java/android/content/res/Resources.java +3 −2 Original line number Diff line number Diff line Loading @@ -94,12 +94,13 @@ public class Resources { private static final LongSparseArray<ColorStateList> sPreloadedColorStateLists = new LongSparseArray<ColorStateList>(); private static Resources mSystem = null; // Used by BridgeResources in layoutlib static Resources mSystem = null; private static boolean sPreloaded; private static int sPreloadedDensity; // These are protected by mAccessLock. private final Object mAccessLock = new Object(); private final Configuration mTmpConfig = new Configuration(); private final LongSparseArray<WeakReference<Drawable.ConstantState>> mDrawableCache Loading tools/layoutlib/bridge/src/android/content/res/BridgeResources.java +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ public final class BridgeResources extends Resources { private BridgeContext mContext; private IProjectCallback mProjectCallback; private boolean[] mPlatformResourceFlag = new boolean[1]; private TypedValue mTmpValue = new TypedValue(); /** * Simpler wrapper around FileInputStream. This is used when the input stream represent Loading Loading
core/java/android/content/res/Resources.java +3 −2 Original line number Diff line number Diff line Loading @@ -94,12 +94,13 @@ public class Resources { private static final LongSparseArray<ColorStateList> sPreloadedColorStateLists = new LongSparseArray<ColorStateList>(); private static Resources mSystem = null; // Used by BridgeResources in layoutlib static Resources mSystem = null; private static boolean sPreloaded; private static int sPreloadedDensity; // These are protected by mAccessLock. private final Object mAccessLock = new Object(); private final Configuration mTmpConfig = new Configuration(); private final LongSparseArray<WeakReference<Drawable.ConstantState>> mDrawableCache Loading
tools/layoutlib/bridge/src/android/content/res/BridgeResources.java +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ public final class BridgeResources extends Resources { private BridgeContext mContext; private IProjectCallback mProjectCallback; private boolean[] mPlatformResourceFlag = new boolean[1]; private TypedValue mTmpValue = new TypedValue(); /** * Simpler wrapper around FileInputStream. This is used when the input stream represent Loading