mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-13 02:14:28 +01:00
fix(settings): sort setting preferences using lowercase (#2312)
This commit is contained in:
parent
876b271dca
commit
2743a95b41
1 changed files with 3 additions and 3 deletions
|
@ -35,8 +35,8 @@ internal abstract class AbstractPreferenceScreen(
|
||||||
return PreferenceScreen(
|
return PreferenceScreen(
|
||||||
key,
|
key,
|
||||||
StringResource("${key}_title", title),
|
StringResource("${key}_title", title),
|
||||||
preferences.sortedBy { it.title.value } +
|
preferences.sortedBy { it.title.value.lowercase() } +
|
||||||
categories.sortedBy { it.title }.map { it.transform() },
|
categories.sortedBy { it.title.lowercase() }.map { it.transform() },
|
||||||
summary?.let { summary ->
|
summary?.let { summary ->
|
||||||
StringResource("${key}_summary", summary)
|
StringResource("${key}_summary", summary)
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ internal abstract class AbstractPreferenceScreen(
|
||||||
return PreferenceCategory(
|
return PreferenceCategory(
|
||||||
key,
|
key,
|
||||||
StringResource("${key}_title", title),
|
StringResource("${key}_title", title),
|
||||||
preferences.sortedBy { it.title.value }
|
preferences.sortedBy { it.title.value.lowercase() }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue