Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 708654c0 authored by Masanori Ogino's avatar Masanori Ogino
Browse files

Shoud specify the Resource class instance as an argument of the method

newDrawable and change the name from 'DrawableCacheClear' to 'clearDrawableCache'
(additional changes for ID:15815)
https://review.source.android.com/#change,15815

Change-Id: I6bf19b8e6e187df8c8e3cb57d9e04278ddfe5055
parent 798e2d3d
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1305,8 +1305,8 @@ public class Resources {
                    keyboardHidden, mConfiguration.navigation, width, height,
                    mConfiguration.screenLayout, mConfiguration.uiMode, sSdkVersion);

            drawableCacheClear(mDrawableCache, configChanges);
            drawableCacheClear(mColorDrawableCache, configChanges);
            clearDrawableCache(mDrawableCache, configChanges);
            clearDrawableCache(mColorDrawableCache, configChanges);

            mColorStateListCache.clear();

@@ -1320,7 +1320,7 @@ public class Resources {
        }
    }

    private void drawableCacheClear(
    private void clearDrawableCache(
            LongSparseArray<WeakReference<ConstantState>> cache,
            int configChanges) {
        int N = cache.size();
@@ -1781,7 +1781,7 @@ public class Resources {
                    //Log.i(TAG, "Returning cached drawable @ #" +
                    //        Integer.toHexString(((Integer)key).intValue())
                    //        + " in " + this + ": " + entry);
                    return entry.newDrawable();
                    return entry.newDrawable(this);
                }
                else {  // our entry has been purged
                    drawableCache.delete(key);