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

Commit 9c3cb64e authored by Dan Sandler's avatar Dan Sandler
Browse files

Add bubble and shortcut info to notification log debug

Bug: 159442644
Test: adb shell am start -n com.android.settings/.Settings\\\$NotificationStationActivity
Change-Id: I5c628ed52bfb44af1cc99ec9fd3dc436fe296344
parent 21099bcb
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -458,6 +458,18 @@ public class NotificationStation extends SettingsPreferenceFragment {
                    .append(bold(getString(R.string.notification_log_channel)))
                    .append(delim)
                    .append(info.channel.toString());
            sb.append("\n")
                    .append(bold("getShortcutInfo"))
                    .append(delim)
                    .append(String.valueOf(rank.getShortcutInfo()));
            sb.append("\n")
                    .append(bold("isConversation"))
                    .append(delim)
                    .append(rank.isConversation() ? "true" : "false");
            sb.append("\n")
                    .append(bold("isBubble"))
                    .append(delim)
                    .append(rank.isBubble() ? "true" : "false");
            if (info.active) {
                sb.append("\n")
                        .append(bold(getString(
@@ -593,6 +605,18 @@ public class NotificationStation extends SettingsPreferenceFragment {
                    .append(delim)
                    .append(n.contentView.toString());
        }
        if (n.getBubbleMetadata() != null) {
            sb.append("\n")
                    .append(bold("bubbleMetadata"))
                    .append(delim)
                    .append(String.valueOf(n.getBubbleMetadata()));
        }
        if (n.getShortcutId() != null) {
            sb.append("\n")
                    .append(bold("shortcutId"))
                    .append(delim)
                    .append(String.valueOf(n.getShortcutId()));
        }

        if (DUMP_EXTRAS) {
            if (n.extras != null && n.extras.size() > 0) {