am 501f7bca: Merge "Eliminating dead logic - bitmap state simply cannot be null here."

* commit '501f7bca83ecc2200a590966e461590d9716df7d':
  Eliminating dead logic - bitmap state simply cannot be null here.
This commit is contained in:
Conley Owens
2011-04-28 23:52:41 -07:00
committed by Android Git Automerger

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);
}