use lower dpi on better device fullscreen images
This commit is contained in:
parent
fdcf6da503
commit
1bae7ef7a6
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue