mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
feat(app-selector): show patchable installed apps first (#1496)
This commit is contained in:
parent
a8b9d9316f
commit
d55abf5dda
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue