irshu355 / Android-WYSIWYG-Editor

:pager: A text editor written in Android using native components in the content tree. Integrate easily to work with web based WYSIWYG's.
http://irshulx.github.io/Android-WYSIWYG-Editor
Apache License 2.0
412 stars 116 forks source link

Error when using Dagger hilt #97

Open alasari42 opened 3 years ago

alasari42 commented 3 years ago

E/AndroidRuntime: FATAL EXCEPTION: main Process: it.dispendikbud.stb.aws, PID: 11272 java.lang.ClassCastException: dagger.hilt.android.internal.managers.ViewComponentManager$FragmentContextWrapper cannot be cast to android.app.Activity at com.github.irshulx.EditorCore.getActivity(EditorCore.java:210) at com.github.irshulx.Components.InputExtensions.setFocus(InputExtensions.java:693) at com.github.irshulx.Components.InputExtensions$4.run(InputExtensions.java:407) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)