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
1 changed files with 2 additions and 2 deletions

View File

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