* commit 'f26ec38c344af8cf91575b461028a3033b940d49': Eliminating dead logic - bitmap state simply cannot be null here.
This commit is contained in:
@@ -486,10 +486,8 @@ public class BitmapDrawable extends Drawable {
|
|||||||
mBitmapState = state;
|
mBitmapState = state;
|
||||||
if (res != null) {
|
if (res != null) {
|
||||||
mTargetDensity = res.getDisplayMetrics().densityDpi;
|
mTargetDensity = res.getDisplayMetrics().densityDpi;
|
||||||
} else if (state != null) {
|
|
||||||
mTargetDensity = state.mTargetDensity;
|
|
||||||
} else {
|
} else {
|
||||||
mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
|
mTargetDensity = state.mTargetDensity;
|
||||||
}
|
}
|
||||||
setBitmap(state.mBitmap);
|
setBitmap(state.mBitmap);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user