use lower dpi on better device fullscreen images

This commit is contained in:
tibbi 2018-09-20 13:52:05 +02:00
parent fdcf6da503
commit 1bae7ef7a6

View file

@ -402,8 +402,8 @@ class PhotoFragment : ViewPagerFragment() {
val metrics = resources.displayMetrics val metrics = resources.displayMetrics
val averageDpi = (metrics.xdpi + metrics.ydpi) / 2 val averageDpi = (metrics.xdpi + metrics.ydpi) / 2
return when { return when {
averageDpi > 400 -> 320 averageDpi > 400 -> 280
averageDpi > 300 -> 240 averageDpi > 300 -> 220
else -> 160 else -> 160
} }
} }