adding a new icon for the notifications

This commit is contained in:
tibbi 2020-04-05 10:55:24 +02:00
parent b48f18eaf8
commit 7f2470567d
6 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class SmsReceiver : BroadcastReceiver() {
val builder = NotificationCompat.Builder(context, channelId) val builder = NotificationCompat.Builder(context, channelId)
.setContentTitle(address) .setContentTitle(address)
.setContentText(body) .setContentText(body)
.setSmallIcon(R.drawable.ic_launcher_background) .setSmallIcon(R.drawable.ic_messenger)
.setLargeIcon(BitmapFactory.decodeResource(context.resources, R.drawable.ic_launcher_background)) .setLargeIcon(BitmapFactory.decodeResource(context.resources, R.drawable.ic_launcher_background))
.setStyle(NotificationCompat.BigTextStyle().setSummaryText(summaryText).bigText(body)) .setStyle(NotificationCompat.BigTextStyle().setSummaryText(summaryText).bigText(body))
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB