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)
|
return new Notification.Builder(context)
|
||||||
.setStyle(new Notification.DecoratedCustomViewStyle())
|
.setStyle(new Notification.DecoratedCustomViewStyle())
|
||||||
.setSmallIcon(R.drawable.topbar_call_notification)
|
.setSmallIcon(R.drawable.topbar_call_notification)
|
||||||
.setAutoCancel(false)
|
.setLargeIcon(contactIcon)
|
||||||
|
.setContentTitle(contactName)
|
||||||
|
.setContentText(context.getString(R.string.incall_notif_incoming))
|
||||||
.setContentIntent(intent)
|
.setContentIntent(intent)
|
||||||
.setCategory(Notification.CATEGORY_CALL)
|
.setCategory(Notification.CATEGORY_CALL)
|
||||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
||||||
.setPriority(Notification.PRIORITY_HIGH)
|
.setPriority(Notification.PRIORITY_HIGH)
|
||||||
.setWhen(System.currentTimeMillis())
|
.setWhen(System.currentTimeMillis())
|
||||||
|
.setAutoCancel(false)
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setColor(context.getColor(R.color.notification_led_color))
|
.setColor(context.getColor(R.color.notification_led_color))
|
||||||
|
|
|
@ -191,6 +191,9 @@ class ApiTwentySixPlus {
|
||||||
context, context.getString(R.string.notification_channel_id))
|
context, context.getString(R.string.notification_channel_id))
|
||||||
.setStyle(new Notification.DecoratedCustomViewStyle())
|
.setStyle(new Notification.DecoratedCustomViewStyle())
|
||||||
.setSmallIcon(R.drawable.topbar_call_notification)
|
.setSmallIcon(R.drawable.topbar_call_notification)
|
||||||
|
.setLargeIcon(contactIcon)
|
||||||
|
.setContentTitle(contactName)
|
||||||
|
.setContentText(context.getString(R.string.incall_notif_incoming))
|
||||||
.setContentIntent(intent)
|
.setContentIntent(intent)
|
||||||
.setCategory(Notification.CATEGORY_CALL)
|
.setCategory(Notification.CATEGORY_CALL)
|
||||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
||||||
|
|
Loading…
Reference in a new issue