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

Commit e922f49b authored by Alan Viverette's avatar Alan Viverette
Browse files

Allow getChangingConfigurations() on DrawableWrapper with null drawable

Change-Id: Iecf39b53419e07927a3fe3096036a57afd69439a
parent afabc217
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -432,7 +432,8 @@ public abstract class DrawableWrapper extends Drawable implements Drawable.Callb


        @Override
        @Override
        public int getChangingConfigurations() {
        public int getChangingConfigurations() {
            return mChangingConfigurations | mDrawableState.getChangingConfigurations();
            return mChangingConfigurations
                    | (mDrawableState != null ? mDrawableState.getChangingConfigurations() : 0);
        }
        }


        public boolean canConstantState() {
        public boolean canConstantState() {