-
-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchWidget
is not properly working.
#4059
Comments
@MohitMaliFtechiz Please write an automated test for this, hard to understand how we have broken this without noticing. |
@kelson42 I have tested it on my device, and I didn’t find any issues. |
@kelson42 This regression was introduced here bfff033#diff-95ab9c8997fad17d41e271fd21ef5ff42f13f5f9b7480a5b93c34f12e27a76e7R38, the error is FATAL EXCEPTION: main
Process: org.kiwix.kiwixmobile, PID: 7403
java.lang.RuntimeException: Unable to start receiver org.kiwix.kiwixmobile.main.KiwixSearchWidget: java.lang.ClassCastException: kotlin.jvm.internal.ClassReference cannot be cast to org.kiwix.kiwixmobile.core.main.CoreMainActivity
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4506)
at android.app.ActivityThread.access$1600(ActivityThread.java:301)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2188)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.ClassCastException: kotlin.jvm.internal.ClassReference cannot be cast to org.kiwix.kiwixmobile.core.main.CoreMainActivity
at org.kiwix.kiwixmobile.core.main.CoreSearchWidget.onUpdate(CoreSearchWidget.kt:38)
at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:66)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4497)
at android.app.ActivityThread.access$1600(ActivityThread.java:301)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2188)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Please remove the widget from your home screen, and add it again to home screen, you will see the error. |
Describe the bug
The
SearchWidget
is not properly working, it is not opening the bookmark, or search screens.Expected behavior
It should properly work.
Steps to reproduce the behavior:
Environment
XRecorder_06112024_184738.mp4
The text was updated successfully, but these errors were encountered: