Handle multi-line and rich-text notifications on Android
ClosedPublic

Authored by vkrause on Fri, May 1, 10:40 AM.

Details

Summary

By default only a single line of the notification message is shown,
for making longer messages readable we need to use the BigTextStyle
to get expandable multi-line messages. In the single-line case this
behaves as before.

According to the documentation BigTextStyle also should enable rich
text support, however that didn't seem to work here, so for now we
strip out rich text to not show raw HTML tags.

Diff Detail

Repository
R289 KNotifications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Fri, May 1, 10:40 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFri, May 1, 10:40 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
vkrause requested review of this revision.Fri, May 1, 10:40 AM
nicolasfella accepted this revision.Fri, May 1, 10:43 AM
This revision is now accepted and ready to land.Fri, May 1, 10:43 AM
This revision was automatically updated to reflect the committed changes.