mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[App] Respect user setting before notifying about updates.
This commit is contained in:
parent
d3599b8c89
commit
41693a9fc8
@ -92,6 +92,8 @@ class UpdateManager(val app: App) : CoroutineScope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun notify(update: Update) {
|
fun notify(update: Update) {
|
||||||
|
if (!app.config.sync.notifyAboutUpdates)
|
||||||
|
return
|
||||||
val bigText = listOf(
|
val bigText = listOf(
|
||||||
app.getString(R.string.notification_updates_text, update.versionName),
|
app.getString(R.string.notification_updates_text, update.versionName),
|
||||||
update.releaseNotes?.let { BetterHtml.fromHtml(context = null, it) },
|
update.releaseNotes?.let { BetterHtml.fromHtml(context = null, it) },
|
||||||
|
Loading…
Reference in New Issue
Block a user