mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-20 05:30:40 +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)
|
val soundUri = Uri.parse(config.reminderSoundUri)
|
||||||
grantReadUriPermission(config.reminderSoundUri)
|
grantReadUriPermission(config.reminderSoundUri)
|
||||||
|
|
||||||
val contentTitle = when (publicVersion) {
|
val contentTitle = if (publicVersion) resources.getString(R.string.app_name) else event.title
|
||||||
false -> event.title
|
|
||||||
true -> resources.getString(R.string.app_name)
|
val contentText = if (publicVersion) resources.getString(R.string.public_event_notification_text) else content
|
||||||
}
|
|
||||||
val contentText = when (publicVersion) {
|
|
||||||
false -> content
|
|
||||||
true -> resources.getString(R.string.public_event_notification_text)
|
|
||||||
}
|
|
||||||
val builder = NotificationCompat.Builder(this)
|
val builder = NotificationCompat.Builder(this)
|
||||||
.setContentTitle(contentTitle)
|
.setContentTitle(contentTitle)
|
||||||
.setContentText(contentText)
|
.setContentText(contentText)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user