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

Commit 4a3e1f78 authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Merge "Log the attachment index" into tm-qpr-dev am: a57772af am: 5932acf2

parents 614a43e3 5932acf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
                    }
+3 −2
Original line number Diff line number Diff line
@@ -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"
        })
    }