fixup! UpdatesPreference: Setup auto-updates

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-12-31 19:37:33 +05:30
parent f851a5ad3e
commit 25f2b111c2

View File

@@ -162,7 +162,7 @@ class UpdateWorker @AssistedInject constructor(
}
if (updatesList.isNotEmpty()) {
if (autoUpdatesMode == 2) {
if (autoUpdatesMode == 1) {
Log.i("Found updates, notifying!")
val notifyManager = appContext.getSystemService(Context.NOTIFICATION_SERVICE)
as NotificationManager