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
|
// 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")
|
if (filteredUpdates.second.isNotEmpty()) {
|
||||||
notifyUpdates(filteredUpdates.second)
|
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
|
// Trigger download for apps if they can be auto-updated
|
||||||
filteredUpdates.first.forEach { downloadHelper.enqueueUpdate(it) }
|
filteredUpdates.first.forEach { downloadHelper.enqueueUpdate(it) }
|
||||||
|
|||||||
Reference in New Issue
Block a user