mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
feat(app-selector): show patchable installed apps first (#1496)
This commit is contained in:
parent
a8b9d9316f
commit
d55abf5dda
@ -80,7 +80,9 @@ class PM(
|
||||
(compatibleApps.await() + installedApps.await())
|
||||
.distinctBy { it.packageName }
|
||||
.sortedWith(
|
||||
compareByDescending<AppInfo> {
|
||||
compareByDescending<AppInfo>{
|
||||
it.packageInfo != null && (it.patches ?: 0) > 0
|
||||
}.thenByDescending {
|
||||
it.patches
|
||||
}.thenBy {
|
||||
it.packageInfo?.label()
|
||||
|
Loading…
Reference in New Issue
Block a user