Skip to content

Commit

Permalink
feat(app-selector): show patchable installed apps first (ReVanced#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAabedKhan authored Dec 14, 2023
1 parent a8b9d93 commit d55abf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/app/revanced/manager/util/PM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d55abf5

Please sign in to comment.