mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
ui:preview Removed redundant variable.
This commit is contained in:
parent
daee7d101b
commit
a78ab4ba97
1 changed files with 1 additions and 2 deletions
|
@ -824,8 +824,7 @@ public class PreviewImageFragment extends FileFragment {
|
||||||
private static int convertDpToPixel(float dp, Context context) {
|
private static int convertDpToPixel(float dp, Context context) {
|
||||||
Resources resources = context.getResources();
|
Resources resources = context.getResources();
|
||||||
DisplayMetrics metrics = resources.getDisplayMetrics();
|
DisplayMetrics metrics = resources.getDisplayMetrics();
|
||||||
int px = (int) (dp * ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT));
|
return (int) (dp * ((float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT));
|
||||||
return px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue