07-20-2023, 08:38 AM
I'm using a third-party library that has some custom view implementations. In the implementation, they call `Utils.showSoftKeyboard(context as Activity)`. This, along with using the fragment as an @AndroidEntryPoint causes the following exception:
`java.lang.ClassCastException: dagger.hilt.android.internal.managers.ViewComponentManager$FragmentContextWrapper cannot be cast to android.app.Activity`.
Is there any way to fix this without altering the third-party library?
`java.lang.ClassCastException: dagger.hilt.android.internal.managers.ViewComponentManager$FragmentContextWrapper cannot be cast to android.app.Activity`.
Is there any way to fix this without altering the third-party library?