mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
Changes requested by tibbi
This commit is contained in:
parent
3ef480a80d
commit
f9eb5e6873
@ -184,14 +184,10 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
|
||||
val soundUri = Uri.parse(config.reminderSoundUri)
|
||||
grantReadUriPermission(config.reminderSoundUri)
|
||||
|
||||
val contentTitle = when (publicVersion) {
|
||||
false -> event.title
|
||||
true -> resources.getString(R.string.app_name)
|
||||
}
|
||||
val contentText = when (publicVersion) {
|
||||
false -> content
|
||||
true -> resources.getString(R.string.public_event_notification_text)
|
||||
}
|
||||
val contentTitle = if (publicVersion) resources.getString(R.string.app_name) else event.title
|
||||
|
||||
val contentText = if (publicVersion) resources.getString(R.string.public_event_notification_text) else content
|
||||
|
||||
val builder = NotificationCompat.Builder(this)
|
||||
.setContentTitle(contentTitle)
|
||||
.setContentText(contentText)
|
||||
|
Loading…
x
Reference in New Issue
Block a user