From 4dec2898f48c39c5c6dce16962c7e82e18a80a5d Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Mon, 24 Dec 2018 22:44:59 +0100 Subject: [PATCH] [Receivenotification] Support long text Summary: Use bigtext style. BUG: 402489 Test Plan: Send notification with long text. Before a single line was shown. Now the user can view the full content by pulling down the notification Reviewers: #kde_connect, albertvaka Reviewed By: #kde_connect, albertvaka Subscribers: kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D17786 --- .../ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java index 5c1fcea5..a9a06eb3 100644 --- a/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ReceiveNotificationsPlugin/ReceiveNotificationsPlugin.java @@ -115,6 +115,7 @@ public class ReceiveNotificationsPlugin extends Plugin { .setAutoCancel(true) .setLocalOnly(true) // to avoid bouncing the notification back to other kdeconnect nodes .setDefaults(Notification.DEFAULT_ALL) + .setStyle(new NotificationCompat.BigTextStyle().bigText(np.getString("ticker"))) .build(); NotificationHelper.notifyCompat(notificationManager, "kdeconnectId:" + np.getString("id", "0"), np.getInt("id", 0), noti);