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

Commit 0b4ceb3f authored by Dan Sandler's avatar Dan Sandler Committed by Daniel Sandler
Browse files

Minor text fixes.

Bug: 14292528
Fixes: 36712548
Test: adb shell dumpsys notification; 
      adb shell dumpsys notification --noredact
Change-Id: I5a6cfbd7fe8078f00780026389565d07149f0d5e
parent c922c482
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -376,7 +376,20 @@ public final class NotificationRecord {
        pw.println(prefix + "fullscreenIntent=" + notification.fullScreenIntent);
        pw.println(prefix + "contentIntent=" + notification.contentIntent);
        pw.println(prefix + "deleteIntent=" + notification.deleteIntent);
        pw.println(prefix + "tickerText=" + notification.tickerText);

        pw.print(prefix + "tickerText=");
        if (!TextUtils.isEmpty(notification.tickerText)) {
            final String ticker = notification.tickerText.toString();
            if (redact) {
                // if the string is long enough, we allow ourselves a few bytes for debugging
                pw.print(ticker.length() > 16 ? ticker.substring(0,8) : "");
                pw.println("...");
            } else {
                pw.println(ticker);
            }
        } else {
            pw.println("null");
        }
        pw.println(prefix + "contentView=" + notification.contentView);
        pw.println(prefix + String.format("color=0x%08x", notification.color));
        pw.println(prefix + "timeout=" + TimeUtils.formatForLogging(notification.getTimeout()));