mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-03-31 00:40:12 +02:00
sort resolutions by aspect ratio
This commit is contained in:
parent
a83aa1c2e2
commit
3275cf5179
@ -64,6 +64,7 @@ class ImageQualityManager(
|
||||
.flatMap { it.qualities }
|
||||
.sortedByDescending { it.pixels }
|
||||
.distinctBy { it.getAspectRatio(activity) }
|
||||
.sortedByDescending { it.getAspectRatio(activity).split(":").firstOrNull()?.toIntOrNull() }
|
||||
.filter { it.isSupported(fullScreenSize.isSixteenToNine()) }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user