mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-05-19 05:46:58 -04:00
UpdateWorker: Ensure there are actually apps that can't be auto-updated
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -123,8 +123,10 @@ class UpdateWorker @AssistedInject constructor(
|
||||
}
|
||||
|
||||
// Notify about apps that cannot be auto-updated
|
||||
Log.i(TAG, "Found ${updates.size} updates out of which ${filteredUpdates.second.size} cannot be auto-updated")
|
||||
notifyUpdates(filteredUpdates.second)
|
||||
if (filteredUpdates.second.isNotEmpty()) {
|
||||
Log.i(TAG, "Found ${updates.size} updates out of which ${filteredUpdates.second.size} cannot be auto-updated")
|
||||
notifyUpdates(filteredUpdates.second)
|
||||
}
|
||||
|
||||
// Trigger download for apps if they can be auto-updated
|
||||
filteredUpdates.first.forEach { downloadHelper.enqueueUpdate(it) }
|
||||
|
||||
Reference in New Issue
Block a user