mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
use lower dpi on better device fullscreen images
This commit is contained in:
parent
fdcf6da503
commit
1bae7ef7a6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue