mirror of https://github.com/readrops/Readrops.git
Add big text to sync result notification
This commit is contained in:
parent
70a9dff3ba
commit
b2a51825e2
|
@ -77,6 +77,7 @@ class SyncWorker(context: Context, parameters: WorkerParameters) : Worker(contex
|
||||||
val notificationBuilder = NotificationCompat.Builder(applicationContext, ReadropsApp.SYNC_CHANNEL_ID)
|
val notificationBuilder = NotificationCompat.Builder(applicationContext, ReadropsApp.SYNC_CHANNEL_ID)
|
||||||
.setContentTitle(notifContent.title)
|
.setContentTitle(notifContent.title)
|
||||||
.setContentText(notifContent.content)
|
.setContentText(notifContent.content)
|
||||||
|
.setStyle(NotificationCompat.BigTextStyle().bigText(notifContent.content))
|
||||||
.setSmallIcon(R.drawable.ic_notif)
|
.setSmallIcon(R.drawable.ic_notif)
|
||||||
.setContentIntent(PendingIntent.getActivity(applicationContext, 0, intent, 0))
|
.setContentIntent(PendingIntent.getActivity(applicationContext, 0, intent, 0))
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
|
|
Loading…
Reference in New Issue