From 65fa49132e0c869b5a074dc3bc737cead1989312 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 23 Aug 2022 14:51:07 +0530 Subject: [PATCH] settings: AppListRetriever: Switch to lowercase() method W: 'toLowerCase(Locale): String' is deprecated. Use lowercase() instead. Signed-off-by: Aayush Gupta --- .../com/stevesoltys/seedvault/settings/AppListRetriever.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/settings/AppListRetriever.kt b/app/src/main/java/com/stevesoltys/seedvault/settings/AppListRetriever.kt index cae5c319..29cb923c 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/settings/AppListRetriever.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/settings/AppListRetriever.kt @@ -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 { @@ -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) {