Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086ab749 authored by Salvador Martinez's avatar Salvador Martinez
Browse files

Update notification to allow multiline text

Sometimes the remaining time text can be a bit too long for one line.
This change updates the notification to allow the text to go onto the
second line.

Test: visual inspection
Bug: 77500880
Change-Id: I8f87383dab9b27890934ad969d0c4e8a26f3c3a3
parent ea31cbea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -229,10 +229,11 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
                        // Bump the notification when the bucket dropped.
                        .setWhen(mWarningTriggerTimeMs)
                        .setShowWhen(false)
                        .setContentTitle(title)
                        .setContentText(contentText)
                        .setContentTitle(title)
                        .setOnlyAlertOnce(true)
                        .setDeleteIntent(pendingBroadcast(ACTION_DISMISSED_WARNING))
                        .setStyle(new Notification.BigTextStyle().bigText(contentText))
                        .setVisibility(Notification.VISIBILITY_PUBLIC);
        if (hasBatterySettings()) {
            nb.setContentIntent(pendingBroadcast(ACTION_SHOW_BATTERY_SETTINGS));