Skip to content

Commit

Permalink
[App] Respect user setting before notifying about updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Oct 24, 2022
1 parent d3599b8 commit 41693a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class UpdateManager(val app: App) : CoroutineScope {
}

fun notify(update: Update) {
if (!app.config.sync.notifyAboutUpdates)
return
val bigText = listOf(
app.getString(R.string.notification_updates_text, update.versionName),
update.releaseNotes?.let { BetterHtml.fromHtml(context = null, it) },
Expand Down

0 comments on commit 41693a9

Please sign in to comment.