fix of setOnHierarchyChangeListenerRecursively

This commit is contained in:
InsanusMokrassar 2022-09-26 01:10:10 +06:00
parent 9d95687d3c
commit de999e197f

View File

@ -12,6 +12,6 @@ fun ViewGroup.setOnHierarchyChangeListenerRecursively(
) { ) {
setOnHierarchyChangeListener(listener) setOnHierarchyChangeListener(listener)
(0 until childCount).forEach { (0 until childCount).forEach {
(getChildAt(it) as? ViewGroup) ?.setOnHierarchyChangeListener(listener) (getChildAt(it) as? ViewGroup) ?.setOnHierarchyChangeListenerRecursively(listener)
} }
} }