Loading app/src/main/java/foundation/e/apps/data/updates/UpdatesManagerImpl.kt +10 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class UpdatesManagerImpl @Inject constructor( val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) addSystemAppsAtFirst(updateList, nonFaultyUpdateList, systemApps) rearrangeAppLoungeAtLast(updateList) return Pair(updateList, status) } Loading Loading @@ -167,6 +168,7 @@ class UpdatesManagerImpl @Inject constructor( val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) addSystemAppsAtFirst(updateList, nonFaultyUpdateList, systemApps) rearrangeAppLoungeAtLast(updateList) return Pair(updateList, status) } Loading Loading @@ -194,6 +196,14 @@ class UpdatesManagerImpl @Inject constructor( updateList.addAll(nonFaultyApps) } private fun rearrangeAppLoungeAtLast(updateList: MutableList<Application>) { val appLoungeItem = updateList.find { it.isSystemApp && it.package_name == context.packageName } ?: return updateList.remove(appLoungeItem) updateList.add(appLoungeItem) } /** * Lists apps directly updatable by App Lounge from the Open Source category. * (This includes apps installed by F-Droid client app, if used by the user; Loading Loading
app/src/main/java/foundation/e/apps/data/updates/UpdatesManagerImpl.kt +10 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ class UpdatesManagerImpl @Inject constructor( val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) addSystemAppsAtFirst(updateList, nonFaultyUpdateList, systemApps) rearrangeAppLoungeAtLast(updateList) return Pair(updateList, status) } Loading Loading @@ -167,6 +168,7 @@ class UpdatesManagerImpl @Inject constructor( val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) addSystemAppsAtFirst(updateList, nonFaultyUpdateList, systemApps) rearrangeAppLoungeAtLast(updateList) return Pair(updateList, status) } Loading Loading @@ -194,6 +196,14 @@ class UpdatesManagerImpl @Inject constructor( updateList.addAll(nonFaultyApps) } private fun rearrangeAppLoungeAtLast(updateList: MutableList<Application>) { val appLoungeItem = updateList.find { it.isSystemApp && it.package_name == context.packageName } ?: return updateList.remove(appLoungeItem) updateList.add(appLoungeItem) } /** * Lists apps directly updatable by App Lounge from the Open Source category. * (This includes apps installed by F-Droid client app, if used by the user; Loading