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

Commit 0a056683 authored by Steve Kondik's avatar Steve Kondik
Browse files

Revert "Merge "Don't drop the drawable cache completely on configuration change" into gingerbread"

This reverts commit 7314c369, reversing
changes made to 87b6d2db.
parent d48995a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1359,6 +1359,7 @@ public class Resources {
                    }
                }
            }
            mDrawableCache.clear();
            mColorStateListCache.clear();
            flushLayoutCache();
        }
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class AnimatedRotateDrawable extends Drawable implements Drawable.Callbac
    @Override
    public ConstantState getConstantState() {
        if (mState.canConstantState()) {
            mState.mChangingConfigurations = getChangingConfigurations();
            mState.mChangingConfigurations = super.getChangingConfigurations();
            return mState;
        }
        return null;
+1 −1
Original line number Diff line number Diff line
@@ -427,7 +427,7 @@ public class BitmapDrawable extends Drawable {

    @Override
    public final ConstantState getConstantState() {
        mBitmapState.mChangingConfigurations = getChangingConfigurations();
        mBitmapState.mChangingConfigurations = super.getChangingConfigurations();
        return mBitmapState;
    }

+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ public class ClipDrawable extends Drawable implements Drawable.Callback {
    @Override
    public ConstantState getConstantState() {
        if (mClipState.canConstantState()) {
            mClipState.mChangingConfigurations = getChangingConfigurations();
            mClipState.mChangingConfigurations = super.getChangingConfigurations();
            return mClipState;
        }
        return null;
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public class ColorDrawable extends Drawable {

    @Override
    public ConstantState getConstantState() {
        mState.mChangingConfigurations = getChangingConfigurations();
        mState.mChangingConfigurations = super.getChangingConfigurations();
        return mState;
    }

Loading