settings: AppListRetriever: Switch to lowercase() method
W: 'toLowerCase(Locale): String' is deprecated. Use lowercase() instead. Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
584a54b127
commit
65fa49132e
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ internal class AppListRetriever(
|
||||||
time = time,
|
time = time,
|
||||||
status = status
|
status = status
|
||||||
)
|
)
|
||||||
}.sortedBy { it.name.toLowerCase(locale) }
|
}.sortedBy { it.name.lowercase(locale) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getNotAllowedApps(): List<AppStatus> {
|
private fun getNotAllowedApps(): List<AppStatus> {
|
||||||
|
@ -120,7 +120,7 @@ internal class AppListRetriever(
|
||||||
time = 0,
|
time = 0,
|
||||||
status = FAILED_NOT_ALLOWED
|
status = FAILED_NOT_ALLOWED
|
||||||
)
|
)
|
||||||
}.sortedBy { it.name.toLowerCase(locale) }
|
}.sortedBy { it.name.lowercase(locale) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getIcon(packageName: String): Drawable = when (packageName) {
|
private fun getIcon(packageName: String): Drawable = when (packageName) {
|
||||||
|
|
Loading…
Reference in a new issue