2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-28 20:57:42 +00:00

Allow multi-line, expandable notifications if text doesn't fit

This commit is contained in:
Albert Vaca 2018-12-04 17:38:55 +01:00
parent b21a4ac6ba
commit c80a905f1b

View File

@ -87,6 +87,7 @@ public class PingPlugin extends Plugin {
.setSmallIcon(R.drawable.ic_notification) .setSmallIcon(R.drawable.ic_notification)
.setAutoCancel(true) .setAutoCancel(true)
.setDefaults(Notification.DEFAULT_ALL) .setDefaults(Notification.DEFAULT_ALL)
.setStyle(new NotificationCompat.BigTextStyle().bigText(message))
.build(); .build();
NotificationHelper.notifyCompat(notificationManager, id, noti); NotificationHelper.notifyCompat(notificationManager, id, noti);