Allow getChangingConfigurations() on DrawableWrapper with null drawable
Change-Id: Iecf39b53419e07927a3fe3096036a57afd69439a
This commit is contained in:
@@ -432,7 +432,8 @@ public abstract class DrawableWrapper extends Drawable implements Drawable.Callb
|
||||
|
||||
@Override
|
||||
public int getChangingConfigurations() {
|
||||
return mChangingConfigurations | mDrawableState.getChangingConfigurations();
|
||||
return mChangingConfigurations
|
||||
| (mDrawableState != null ? mDrawableState.getChangingConfigurations() : 0);
|
||||
}
|
||||
|
||||
public boolean canConstantState() {
|
||||
|
||||
Reference in New Issue
Block a user