feat(app-selector): show patchable installed apps first (#1496)

This commit is contained in:
aAbed
2023-12-14 16:35:14 +05:45
committed by oSumAtrIX
parent 4aaa88e353
commit afb0f80de5

View File

@@ -81,6 +81,8 @@ class PM(
.distinctBy { it.packageName } .distinctBy { it.packageName }
.sortedWith( .sortedWith(
compareByDescending<AppInfo>{ compareByDescending<AppInfo>{
it.packageInfo != null && (it.patches ?: 0) > 0
}.thenByDescending {
it.patches it.patches
}.thenBy { }.thenBy {
it.packageInfo?.label() it.packageInfo?.label()