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:
Aayush Gupta
2025-11-29 20:52:12 +08:00
parent f871ca5d33
commit 9bb396eaa8

View File

@@ -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) }