Merge "Eliminating dead logic - bitmap state simply cannot be null here."

This commit is contained in:
Conley Owens
2011-04-28 14:57:14 -07:00
committed by Android Code Review

View File

@@ -474,10 +474,8 @@ public class BitmapDrawable extends Drawable {
mBitmapState = state;
if (res != null) {
mTargetDensity = res.getDisplayMetrics().densityDpi;
} else if (state != null) {
mTargetDensity = state.mTargetDensity;
} else {
mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
mTargetDensity = state.mTargetDensity;
}
setBitmap(state.mBitmap);
}