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:
Aayush Gupta 2022-08-23 14:51:07 +05:30
parent 584a54b127
commit 65fa49132e

View file

@ -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) {