Add big text to sync result notification

This commit is contained in:
Shinokuni 2020-03-08 21:35:23 +01:00
parent 70a9dff3ba
commit b2a51825e2
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class SyncWorker(context: Context, parameters: WorkerParameters) : Worker(contex
val notificationBuilder = NotificationCompat.Builder(applicationContext, ReadropsApp.SYNC_CHANNEL_ID)
.setContentTitle(notifContent.title)
.setContentText(notifContent.content)
.setStyle(NotificationCompat.BigTextStyle().bigText(notifContent.content))
.setSmallIcon(R.drawable.ic_notif)
.setContentIntent(PendingIntent.getActivity(applicationContext, 0, intent, 0))
.setAutoCancel(true)