Update ktfmt component on FBS:master
Reviewed By: hick209 Differential Revision: D49300079 fbshipit-source-id: 7e704e2366feee3f6f2c25ac25d3daea407e71f9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9e219b07d8
commit
ef621b07b7
@@ -31,15 +31,13 @@ class FragmentFrameworkDescriptor(val register: DescriptorRegister) :
|
||||
return node.view?.let {
|
||||
val descriptor = register.descriptorForClassUnsafe(it.javaClass)
|
||||
return descriptor.getBounds(it)
|
||||
}
|
||||
?: Bounds(0, 0, 0, 0)
|
||||
} ?: Bounds(0, 0, 0, 0)
|
||||
}
|
||||
|
||||
override fun onGetChildren(node: android.app.Fragment): List<Any> =
|
||||
node.view?.let { view ->
|
||||
listOf(OffsetChild.zero(view, register.descriptorForClassUnsafe(view.javaClass)))
|
||||
}
|
||||
?: listOf()
|
||||
} ?: listOf()
|
||||
|
||||
override fun onGetAttributes(
|
||||
node: android.app.Fragment,
|
||||
|
||||
@@ -51,8 +51,7 @@ class FragmentSupportDescriptor(val register: DescriptorRegister) :
|
||||
return node.view?.let {
|
||||
val descriptor = register.descriptorForClassUnsafe(it.javaClass)
|
||||
return descriptor.getBounds(it)
|
||||
}
|
||||
?: Bounds(0, 0, 0, 0)
|
||||
} ?: Bounds(0, 0, 0, 0)
|
||||
}
|
||||
|
||||
override fun onGetChildren(node: androidx.fragment.app.Fragment): List<Any> {
|
||||
|
||||
Reference in New Issue
Block a user