diff --git a/src/android/org/kde/knotifications/NotifyByAndroid.java b/src/android/org/kde/knotifications/NotifyByAndroid.java --- a/src/android/org/kde/knotifications/NotifyByAndroid.java +++ b/src/android/org/kde/knotifications/NotifyByAndroid.java @@ -89,6 +89,10 @@ } builder.setContentTitle(notification.title); builder.setContentText(notification.text); + // regular notifications show only a single line of content, if we have more + // we need the "BigTextStyle" expandable notifications to make everything readable + // in the single line case this behaves like the regular one, so no special-casing needed + builder.setStyle(new Notification.BigTextStyle().bigText(notification.text)); // taping the notification shows the app Intent intent = new Intent(m_ctx.getPackageName() + NOTIFICATION_OPENED); diff --git a/src/notifybyandroid.cpp b/src/notifybyandroid.cpp --- a/src/notifybyandroid.cpp +++ b/src/notifybyandroid.cpp @@ -105,8 +105,8 @@ QAndroidJniObject n("org/kde/knotifications/KNotification", "()V"); n.setField("id", notification->id()); - n.setField("text", QAndroidJniObject::fromString(notification->text()).object()); - n.setField("title", QAndroidJniObject::fromString(notification->title()).object()); + n.setField("text", QAndroidJniObject::fromString(stripRichText(notification->text())).object()); + n.setField("title", QAndroidJniObject::fromString(stripRichText(notification->title())).object()); n.setField("channelId", QAndroidJniObject::fromString(notification->eventId()).object()); n.setField("channelName", QAndroidJniObject::fromString(config.readEntry(QLatin1String("Name"))).object());