Fixed incoming call notification empty after clicking it
This commit is contained in:
parent
8a3a254883
commit
eb7f51566e
2 changed files with 7 additions and 1 deletions
|
@ -140,12 +140,15 @@ class ApiTwentyFourPlus {
|
|||
return new Notification.Builder(context)
|
||||
.setStyle(new Notification.DecoratedCustomViewStyle())
|
||||
.setSmallIcon(R.drawable.topbar_call_notification)
|
||||
.setAutoCancel(false)
|
||||
.setLargeIcon(contactIcon)
|
||||
.setContentTitle(contactName)
|
||||
.setContentText(context.getString(R.string.incall_notif_incoming))
|
||||
.setContentIntent(intent)
|
||||
.setCategory(Notification.CATEGORY_CALL)
|
||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
||||
.setPriority(Notification.PRIORITY_HIGH)
|
||||
.setWhen(System.currentTimeMillis())
|
||||
.setAutoCancel(false)
|
||||
.setShowWhen(true)
|
||||
.setOngoing(true)
|
||||
.setColor(context.getColor(R.color.notification_led_color))
|
||||
|
|
|
@ -191,6 +191,9 @@ class ApiTwentySixPlus {
|
|||
context, context.getString(R.string.notification_channel_id))
|
||||
.setStyle(new Notification.DecoratedCustomViewStyle())
|
||||
.setSmallIcon(R.drawable.topbar_call_notification)
|
||||
.setLargeIcon(contactIcon)
|
||||
.setContentTitle(contactName)
|
||||
.setContentText(context.getString(R.string.incall_notif_incoming))
|
||||
.setContentIntent(intent)
|
||||
.setCategory(Notification.CATEGORY_CALL)
|
||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
||||
|
|
Loading…
Reference in a new issue