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

Commit 49c7f141 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '5376-respect_update_notification_choice' into 'main'

Issue 5376: Do not show update notification if deselected by the user.

See merge request !112
parents 37fe9e92 2e6b7a9b
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -62,7 +62,13 @@ class UpdatesWorker @AssistedInject constructor(
        val appsNeededToUpdate = updatesManagerRepository.getUpdates(authData)
            .filter { !(!it.isFree && authData.isAnonymous) }
        val isConnectedToUnmeteredNetwork = isConnectedToUnmeteredNetwork(applicationContext)
        /*
         * Show notification only if enabled.
         * Issue: https://gitlab.e.foundation/e/backlog/-/issues/5376
         */
        if (shouldShowNotification) {
            handleNotification(appsNeededToUpdate, isConnectedToUnmeteredNetwork)
        }
        triggerUpdateProcessOnSettings(
            isConnectedToUnmeteredNetwork,
            appsNeededToUpdate,