Migrate PageIndicatorTextView to Compose

Probably closes #7798
This commit is contained in:
arkon
2023-05-03 16:18:25 -04:00
parent f5ad95d78a
commit 3c79777e66
6 changed files with 73 additions and 65 deletions

View File

@@ -15,9 +15,13 @@ object LocaleHelper {
* Sorts by display name, except keeps the "all" (displayed as "Multi") locale at the top.
*/
val comparator = { a: String, b: String ->
if (a == "all") -1
else if (b == "all") 1
else getDisplayName(a).compareTo(getDisplayName(b))
if (a == "all") {
-1
} else if (b == "all") {
1
} else {
getDisplayName(a).compareTo(getDisplayName(b))
}
}
/**