Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f11b37ea authored by Hasib Prince's avatar Hasib Prince
Browse files

Merge branch '7003-hang_update_page' into 'main'

fixed: hang on opening of updatepage

See merge request !323
parents 794177d3 521bbffa
Loading
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ import foundation.e.apps.data.fused.FusedApi.Companion.APP_TYPE_ANY
import foundation.e.apps.data.fused.data.FusedApp
import foundation.e.apps.data.preference.PreferenceManagerModule
import foundation.e.apps.install.pkg.PkgManagerModule
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import timber.log.Timber
import javax.inject.Inject

@@ -65,6 +67,7 @@ class UpdatesManagerImpl @Inject constructor(
        val gPlayInstalledApps = getGPlayInstalledApps().toMutableList()

        if (preferenceManagerModule.shouldUpdateAppsFromOtherStores()) {
            withContext(Dispatchers.IO) {
                val otherStoresInstalledApps = getAppsFromOtherStores().toMutableList()

                // This list is based on app signatures
@@ -76,6 +79,7 @@ class UpdatesManagerImpl @Inject constructor(
                otherStoresInstalledApps.removeAll(updatableFDroidApps)
                gPlayInstalledApps.addAll(otherStoresInstalledApps)
            }
        }

        // Get open source app updates
        if (openSourceInstalledApps.isNotEmpty()) {