Android. Remove exclamation mark from notification.
This commit is contained in:
parent
cd926dfd50
commit
39dba0c7af
@ -623,7 +623,7 @@ class MainService : Service() {
|
|||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
||||||
.setContentTitle(DEFAULT_NOTIFY_TITLE)
|
.setContentTitle(DEFAULT_NOTIFY_TITLE)
|
||||||
.setContentText(translate(DEFAULT_NOTIFY_TEXT) + '!')
|
.setContentText(translate(DEFAULT_NOTIFY_TEXT))
|
||||||
.setOnlyAlertOnce(true)
|
.setOnlyAlertOnce(true)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.primary))
|
.setColor(ContextCompat.getColor(this, R.color.primary))
|
||||||
@ -689,7 +689,7 @@ class MainService : Service() {
|
|||||||
|
|
||||||
private fun setTextNotification(_title: String?, _text: String?) {
|
private fun setTextNotification(_title: String?, _text: String?) {
|
||||||
val title = _title ?: DEFAULT_NOTIFY_TITLE
|
val title = _title ?: DEFAULT_NOTIFY_TITLE
|
||||||
val text = _text ?: translate(DEFAULT_NOTIFY_TEXT) + '!'
|
val text = _text ?: translate(DEFAULT_NOTIFY_TEXT)
|
||||||
val notification = notificationBuilder
|
val notification = notificationBuilder
|
||||||
.clearActions()
|
.clearActions()
|
||||||
.setStyle(null)
|
.setStyle(null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user