Loading app/src/main/java/foundation/e/apps/data/application/apps/AppsApiImpl.kt +10 −14 Original line number Diff line number Diff line Loading @@ -223,18 +223,15 @@ class AppsApiImpl @Inject constructor( val releaseType = getSystemReleaseType() val eligibleApps = systemAppsUpdatesRepository.getAllEligibleApps() eligibleApps?.forEach { val packageName = it.packageName eligibleApps.forEach { if (!appLoungePackageManager.isInstalled(it.packageName)) { if (!appLoungePackageManager.isInstalled(it)) { // Don't install for system apps which are removed (by root or otherwise) return@forEach } val releaseTypes = it.releaseTypes if (releaseType in releaseTypes) { systemAppsUpdatesRepository.getSystemAppUpdateInfo( packageName, it, releaseType, getSdkLevel(), getDevice(), Loading @@ -243,7 +240,6 @@ class AppsApiImpl @Inject constructor( updateList.add(this) } } } return updateList } Loading app/src/main/java/foundation/e/apps/data/updates/UpdatesManagerImpl.kt +1 −3 Original line number Diff line number Diff line Loading @@ -129,9 +129,7 @@ class UpdatesManagerImpl @Inject constructor( val systemApps = mutableListOf<Application>() getUpdatesFromApi({ getSystemUpdates().toMutableList().let { Pair(it, ResultStatus.OK) } Pair(getSystemUpdates().toMutableList(), ResultStatus.OK) }, systemApps) val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) Loading Loading
app/src/main/java/foundation/e/apps/data/application/apps/AppsApiImpl.kt +10 −14 Original line number Diff line number Diff line Loading @@ -223,18 +223,15 @@ class AppsApiImpl @Inject constructor( val releaseType = getSystemReleaseType() val eligibleApps = systemAppsUpdatesRepository.getAllEligibleApps() eligibleApps?.forEach { val packageName = it.packageName eligibleApps.forEach { if (!appLoungePackageManager.isInstalled(it.packageName)) { if (!appLoungePackageManager.isInstalled(it)) { // Don't install for system apps which are removed (by root or otherwise) return@forEach } val releaseTypes = it.releaseTypes if (releaseType in releaseTypes) { systemAppsUpdatesRepository.getSystemAppUpdateInfo( packageName, it, releaseType, getSdkLevel(), getDevice(), Loading @@ -243,7 +240,6 @@ class AppsApiImpl @Inject constructor( updateList.add(this) } } } return updateList } Loading
app/src/main/java/foundation/e/apps/data/updates/UpdatesManagerImpl.kt +1 −3 Original line number Diff line number Diff line Loading @@ -129,9 +129,7 @@ class UpdatesManagerImpl @Inject constructor( val systemApps = mutableListOf<Application>() getUpdatesFromApi({ getSystemUpdates().toMutableList().let { Pair(it, ResultStatus.OK) } Pair(getSystemUpdates().toMutableList(), ResultStatus.OK) }, systemApps) val nonFaultyUpdateList = faultyAppRepository.removeFaultyApps(updateList) Loading