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,
|
||||
status = status
|
||||
)
|
||||
}.sortedBy { it.name.toLowerCase(locale) }
|
||||
}.sortedBy { it.name.lowercase(locale) }
|
||||
}
|
||||
|
||||
private fun getNotAllowedApps(): List<AppStatus> {
|
||||
|
@ -120,7 +120,7 @@ internal class AppListRetriever(
|
|||
time = 0,
|
||||
status = FAILED_NOT_ALLOWED
|
||||
)
|
||||
}.sortedBy { it.name.toLowerCase(locale) }
|
||||
}.sortedBy { it.name.lowercase(locale) }
|
||||
}
|
||||
|
||||
private fun getIcon(packageName: String): Drawable = when (packageName) {
|
||||
|
|
Loading…
Reference in a new issue