ui:preview Removed redundant variable.

This commit is contained in:
eho 2018-05-21 19:18:59 +02:00
parent daee7d101b
commit a78ab4ba97

View file

@ -824,8 +824,7 @@ public class PreviewImageFragment extends FileFragment {
private static int convertDpToPixel(float dp, Context context) {
Resources resources = context.getResources();
DisplayMetrics metrics = resources.getDisplayMetrics();
int px = (int) (dp * ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT));
return px;
return (int) (dp * ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT));
}