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

Commit e8d29818 authored by Saalim Quadri's avatar Saalim Quadri Committed by Nishith Khanna
Browse files

fix: App Lounge doesn't respect the weekly update checks option

parent 49084cab
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ class UpdatesBroadcastReceiver : BroadcastReceiver() {
        Timber.d("onReceive: ${intent.action}")
        if (intent.action in listOf(Intent.ACTION_BOOT_COMPLETED, Intent.ACTION_MY_PACKAGE_REPLACED)) {
            val interval = appLoungePreference.getUpdateInterval()
            UpdatesWorkManager.enqueueWork(context, interval, ExistingPeriodicWorkPolicy.REPLACE)
            UpdatesWorkManager.enqueueWork(context, interval, ExistingPeriodicWorkPolicy.UPDATE)
        }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ class SettingsFragment : PreferenceFragmentCompat() {
                UpdatesWorkManager.enqueueWork(
                    it,
                    newValue.toString().toLong(),
                    ExistingPeriodicWorkPolicy.REPLACE
                    ExistingPeriodicWorkPolicy.CANCEL_AND_REENQUEUE
                )
            }
            true