Closed InsaneDoggo closed 4 years ago
You can't access viewLifecycleOwner when view is null. Check should be inverted i.e. !=
return if (thisRef.view == null) thisRef.viewLifecycleOwner else thisRef
https://github.com/kirich1409/ViewBindingPropertyDelegate/blob/master/vbpd/vbpd-noreflection/src/main/java/by/kirich1409/viewbindingdelegate/DialogFragmentViewBindings.kt#L16
This isn't mistake. It's handling case when an DialogFragment has custom view or not
You can't access viewLifecycleOwner when view is null. Check should be inverted i.e. !=
https://github.com/kirich1409/ViewBindingPropertyDelegate/blob/master/vbpd/vbpd-noreflection/src/main/java/by/kirich1409/viewbindingdelegate/DialogFragmentViewBindings.kt#L16