mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-05-23 16:06:28 -04:00
sort resolutions by aspect ratio
This commit is contained in:
@@ -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()) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user