Replace toLowerCase with lowercase
This commit is contained in:
@@ -84,6 +84,6 @@ fun hiddenAppsCount(): Int = preferenceManager().hiddenAppSet.getState().value.s
|
||||
fun hiddenAppsComparator(hiddenApps: Set<String>): Comparator<App> {
|
||||
return remember {
|
||||
comparing<App, Int> { if (hiddenApps.contains(it.key.toString())) 0 else 1 }
|
||||
.thenComparing<String> { it.info.label.toString().toLowerCase(Locale.getDefault()) }
|
||||
.thenComparing<String> { it.info.label.toString().lowercase(Locale.getDefault()) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,5 +75,5 @@ class App(context: Context, val info: LauncherActivityInfo) {
|
||||
}
|
||||
|
||||
private val defaultComparator = comparing<App, String> {
|
||||
it.info.label.toString().toLowerCase(Locale.getDefault())
|
||||
it.info.label.toString().lowercase(Locale.getDefault())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user