Created
August 8, 2020 11:12
-
-
Save necatisozer/fb7c288788d922de314ed3f657cf7218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BindingAdapterInitializer @Inject constructor( | |
private val bindingAdapter: GenericBindingAdapter | |
) : ApplicationInitializer { | |
override fun invoke(context: Context) { | |
DataBindingUtil.setDefaultComponent(object : DataBindingComponent { | |
override fun getGenericBindingAdapter() = bindingAdapter | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment