diff --git a/app/src/main/java/foundation/e/apps/updates/manager/UpdatesWorker.kt b/app/src/main/java/foundation/e/apps/updates/manager/UpdatesWorker.kt index 2aa21aa8a9d3111f1096a288b33d6faef3b8952c..37b16ea44f37c45ae98ba33a8d4f6d0a0e916026 100644 --- a/app/src/main/java/foundation/e/apps/updates/manager/UpdatesWorker.kt +++ b/app/src/main/java/foundation/e/apps/updates/manager/UpdatesWorker.kt @@ -62,7 +62,13 @@ class UpdatesWorker @AssistedInject constructor( val appsNeededToUpdate = updatesManagerRepository.getUpdates(authData) .filter { !(!it.isFree && authData.isAnonymous) } val isConnectedToUnmeteredNetwork = isConnectedToUnmeteredNetwork(applicationContext) - handleNotification(appsNeededToUpdate, isConnectedToUnmeteredNetwork) + /* + * Show notification only if enabled. + * Issue: https://gitlab.e.foundation/e/backlog/-/issues/5376 + */ + if (shouldShowNotification) { + handleNotification(appsNeededToUpdate, isConnectedToUnmeteredNetwork) + } triggerUpdateProcessOnSettings( isConnectedToUnmeteredNetwork, appsNeededToUpdate,