diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDiffer.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDiffer.kt index f460644ce71ce..9a9941e7a19c7 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDiffer.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDiffer.kt @@ -123,7 +123,7 @@ class ShadeViewDiffer( when (childNode.parent) { null -> { // A new child (either newly created or coming from some other parent) - logger.logAttachingChild(childNode.label, parentNode.label) + logger.logAttachingChild(childNode.label, parentNode.label, index) parentNode.addChildAt(childNode, index) childNode.parent = parentNode } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDifferLogger.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDifferLogger.kt index 4c0357243d489..6d1071c283e30 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDifferLogger.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/render/ShadeViewDifferLogger.kt @@ -43,12 +43,13 @@ class ShadeViewDifferLogger @Inject constructor( }) } - fun logAttachingChild(key: String, parent: String) { + fun logAttachingChild(key: String, parent: String, atIndex: Int) { buffer.log(TAG, LogLevel.DEBUG, { str1 = key str2 = parent + int1 = atIndex }, { - "Attaching view $str1 to $str2" + "Attaching view $str1 to $str2 at index $int1" }) }