Skip to content

Commit 2466763

Browse files
committed
feat: sort apps according to their names and checked state
ref #196
1 parent 17baa6c commit 2466763

File tree

1 file changed

+1
-1
lines changed
  • feature_apps_rpc/src/main/java/com/my/kizzy/feature_apps_rpc

1 file changed

+1
-1
lines changed

feature_apps_rpc/src/main/java/com/my/kizzy/feature_apps_rpc/AppsRpc.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fun getInstalledApps(context1: Context): List<AppsInfo> {
152152
)
153153
}
154154
}
155-
return appList
155+
return appList.sortedBy { it.name }.sortedBy { !it.isChecked }
156156
}
157157

158158
private fun ResolveInfo.isSystemPackage(): Boolean {

0 commit comments

Comments
 (0)