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

Commit 9ad1696a authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

APP Lounge: Make sure package list is not null before trying to request

parent 7205a85c
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ class UpdatesManagerImpl @Inject constructor(
        val userApplications = pkgManagerModule.getAllUserApps()
        userApplications.forEach { pkgList.add(it.packageName) }

        if (pkgList.isNotEmpty()) {
            // Get updates from CleanAPK
            val cleanAPKList = fusedAPIRepository.getApplicationDetails(
                pkgList,
@@ -60,6 +61,7 @@ class UpdatesManagerImpl @Inject constructor(
            gPlayList.forEach {
                if (it.status == Status.UPDATABLE) updateList.add(it)
            }
        }
        return updateList
    }
}