[App] Respect user setting before notifying about updates.

This commit is contained in:
Kuba Szczodrzyński 2022-10-24 23:33:02 +02:00
parent d3599b8c89
commit 41693a9fc8
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -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) },