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

Commit 4289faf1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix truncated string in battery saver notification" into rvc-dev am:...

Merge "Fix truncated string in battery saver notification" into rvc-dev am: 1d650a22 am: 0303e6ae am: 8efea5b1

Change-Id: I815ae5730626b6c644a56b7ca15070cb26dc59c2
parents 820a79fd 8efea5b1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -302,13 +302,15 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
    }

    private void showAutoSaverSuggestionNotification() {
        final CharSequence message = mContext.getString(R.string.auto_saver_text);
        final Notification.Builder nb =
                new Notification.Builder(mContext, NotificationChannels.HINTS)
                        .setSmallIcon(R.drawable.ic_power_saver)
                        .setWhen(0)
                        .setShowWhen(false)
                        .setContentTitle(mContext.getString(R.string.auto_saver_title))
                        .setContentText(mContext.getString(R.string.auto_saver_text));
                        .setStyle(new Notification.BigTextStyle().bigText(message))
                        .setContentText(message);
        nb.setContentIntent(pendingBroadcast(ACTION_ENABLE_AUTO_SAVER));
        nb.setDeleteIntent(pendingBroadcast(ACTION_DISMISS_AUTO_SAVER_SUGGESTION));
        nb.addAction(0,