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

Commit 06c5e642 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Show big text on AoD

Test: Receive notification, look at AoD
Change-Id: I4ccb33895b5acf12a6341c22c853b0cf75036497
Fixes: 64128466
parent af8d15f6
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -8515,8 +8515,15 @@ public class Notification implements Parcelable

        final StandardTemplateParams fillTextsFrom(Builder b) {
            Bundle extras = b.mN.extras;
            title = b.processLegacyText(extras.getCharSequence(EXTRA_TITLE), ambient);
            text = b.processLegacyText(extras.getCharSequence(EXTRA_TEXT), ambient);
            this.title = b.processLegacyText(extras.getCharSequence(EXTRA_TITLE), ambient);

            // Big text notifications should contain their content when viewed in ambient mode.
            CharSequence text = extras.getCharSequence(EXTRA_BIG_TEXT);
            if (!ambient || TextUtils.isEmpty(text)) {
                text = extras.getCharSequence(EXTRA_TEXT);
            }
            this.text = b.processLegacyText(text, ambient);

            return this;
        }
    }