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

Commit 75f2de3a authored by Jozef BABJAK's avatar Jozef BABJAK Committed by Steve Kondik
Browse files

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

Change-Id: I33fdf650b06242efa22ca30b3f7252f6854b42f6
parent 4532c67b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
    }