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

Commit c3bae8e7 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Improve dumps/logs to diagnose mis-ordered group children

Fixes: 204817567
Test: dumpsysui NotifLog ShadeListBuilder NotifCollection
Change-Id: I4d7f0497451572a7660607cb83b4e08c39b04db7
parent 9cc5daa9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -121,6 +121,12 @@ public class ListDumper {
            sb.append(" (parent=")
                    .append(entry.getParent() != null ? entry.getParent().getKey() : null)
                    .append(")");

            NotificationEntry notifEntry = entry.getRepresentativeEntry();
            if (notifEntry != null) {
                sb.append(" rank=")
                        .append(notifEntry.getRanking().getRank());
            }
        }

        if (entry.getSection() != null) {
+3 −6
Original line number Diff line number Diff line
@@ -25,12 +25,9 @@ data class NotifSection(
    val sectioner: NotifSectioner,
    val index: Int
) {
    val label: String
        get() = "Section($index, $bucket, \"${sectioner.name}\")"

    @PriorityBucket
    val bucket: Int = sectioner.bucket
    val label: String = "$index:$bucket:${sectioner.name}"
    val headerController: NodeController? = sectioner.headerNodeController

    val comparator: NotifComparator? = sectioner.comparator

    @PriorityBucket val bucket: Int = sectioner.bucket
}