mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
[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
This commit is contained in:
@@ -115,6 +115,7 @@ public class ReceiveNotificationsPlugin extends Plugin {
|
|||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setLocalOnly(true) // to avoid bouncing the notification back to other kdeconnect nodes
|
.setLocalOnly(true) // to avoid bouncing the notification back to other kdeconnect nodes
|
||||||
.setDefaults(Notification.DEFAULT_ALL)
|
.setDefaults(Notification.DEFAULT_ALL)
|
||||||
|
.setStyle(new NotificationCompat.BigTextStyle().bigText(np.getString("ticker")))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
NotificationHelper.notifyCompat(notificationManager, "kdeconnectId:" + np.getString("id", "0"), np.getInt("id", 0), noti);
|
NotificationHelper.notifyCompat(notificationManager, "kdeconnectId:" + np.getString("id", "0"), np.getInt("id", 0), noti);
|
||||||
|
Reference in New Issue
Block a user