MCPcopy Create free account
hub / github.com/Snapchat/Valdi / removeFromParent

Method removeFromParent

valdi/src/java/com/snap/valdi/ViewRef.kt:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 view.addView(childView, viewIndex)
70 }
71
72 fun removeFromParent(shouldClearViewNode: Boolean) {
73 val view = get() ?: return
74
75 if (shouldClearViewNode) {
76 ViewUtils.setViewNodeId(view, 0)
77 }
78 view.removeFromParentView()
79 }
80
81 private fun doInvalidateLayout(view: View) {

Callers 1

moveViewToParentMethod · 0.45

Calls 2

setViewNodeIdMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected