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

Commit 0b9f0037 authored by Masanori Ogino's avatar Masanori Ogino Committed by Steve Kondik
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 3459e693
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1337,8 +1337,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();

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

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