Merge "Log the attachment index" into tm-qpr-dev
This commit is contained in:
@@ -123,7 +123,7 @@ class ShadeViewDiffer(
|
|||||||
when (childNode.parent) {
|
when (childNode.parent) {
|
||||||
null -> {
|
null -> {
|
||||||
// A new child (either newly created or coming from some other parent)
|
// 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)
|
parentNode.addChildAt(childNode, index)
|
||||||
childNode.parent = parentNode
|
childNode.parent = parentNode
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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, {
|
buffer.log(TAG, LogLevel.DEBUG, {
|
||||||
str1 = key
|
str1 = key
|
||||||
str2 = parent
|
str2 = parent
|
||||||
|
int1 = atIndex
|
||||||
}, {
|
}, {
|
||||||
"Attaching view $str1 to $str2"
|
"Attaching view $str1 to $str2 at index $int1"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user