mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-17 05:43:50 +00:00
fix of setOnHierarchyChangeListenerRecursively
This commit is contained in:
parent
9d95687d3c
commit
de999e197f
@ -12,6 +12,6 @@ fun ViewGroup.setOnHierarchyChangeListenerRecursively(
|
||||
) {
|
||||
setOnHierarchyChangeListener(listener)
|
||||
(0 until childCount).forEach {
|
||||
(getChildAt(it) as? ViewGroup) ?.setOnHierarchyChangeListener(listener)
|
||||
(getChildAt(it) as? ViewGroup) ?.setOnHierarchyChangeListenerRecursively(listener)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user