File tree 2 files changed +2
-2
lines changed
viewbinding-ktx/src/main/java/com/dylanc/viewbinding
viewbinding-nonreflection-ktx/src/main/java/com/dylanc/viewbinding/nonreflection
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ inline fun <reified VB : ViewBinding> Fragment.binding(method: Method) =
40
40
class FragmentBindingProperty <VB : ViewBinding >(private val clazz : Class <VB >) : ReadOnlyProperty<Fragment, VB> {
41
41
42
42
override fun getValue (thisRef : Fragment , property : KProperty <* >): VB =
43
- requireNotNull(thisRef.view) { " The property of ${property.name} has been destroyed." }
43
+ requireNotNull(thisRef.view) { " The constructor missing layout id or the property of ${property.name} has been destroyed." }
44
44
.getBinding(clazz).also { binding ->
45
45
if (binding is ViewDataBinding ) binding.lifecycleOwner = thisRef.viewLifecycleOwner
46
46
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fun <VB : ViewBinding> Fragment.binding(inflate: (LayoutInflater) -> VB) = Fragm
36
36
37
37
class FragmentBindingDelegate <VB : ViewBinding >(private val bind : (View ) -> VB ) : ReadOnlyProperty<Fragment, VB> {
38
38
override fun getValue (thisRef : Fragment , property : KProperty <* >): VB =
39
- requireNotNull(thisRef.view) { " The property of ${property.name} has been destroyed." }
39
+ requireNotNull(thisRef.view) { " The constructor missing layout id or the property of ${property.name} has been destroyed." }
40
40
.getBinding(bind).also { binding ->
41
41
if (binding is ViewDataBinding ) binding.lifecycleOwner = thisRef.viewLifecycleOwner
42
42
}
You can’t perform that action at this time.
0 commit comments