Closed Nivs113 closed 2 years ago
Hello,
Can you please check whether you have added composeBox.usedIn()
in CometChatMessageList. Please check below link or reference.
https://github.com/cometchat-pro/android-java-chat-ui-kit/blob/master/uikit/src/main/java/com/cometchat/pro/uikit/ui_components/messages/message_list/CometChatMessageList.java#L405
Also, we suggest you to please replacetype== CometChatMessageListActivity.class.getName())
to type.equalsIgnoreCase(CometChatMessageListActivity.class.getName())
and check again.
Hey @Nivs113,
I hope the suggestions shared by Darshan were helpful. For any further technical help, feel free to reach out to us at help@cometchat.com. Thank you!
Regards, Provesha
App is crashing because of Fatal Exception: java.lang.ClassCastException : CometChatMessageActions.java : line : 373
Logs (Error Logs)
Fatal Exception: java.lang.ClassCastException: com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity cannot be cast to com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity at com.cometchat.pro.uikit.ui_components.messages.message_actions.CometChatMessageActions.onDismiss(CometChatMessageActions.java:373) at androidx.fragment.app.DialogFragment.dismissInternal(DialogFragment.java:253) at androidx.fragment.app.DialogFragment.dismiss(DialogFragment.java:222) at com.google.android.material.bottomsheet.BottomSheetDialogFragment.dismiss(BottomSheetDialogFragment.java:47) at com.cometchat.pro.uikit.ui_components.messages.message_actions.CometChatMessageActions$7.onClick(CometChatMessageActions.java:285) at android.view.View.performClick(View.java:8160) at android.widget.TextView.performClick(TextView.java:16222) at android.view.View.performClickInternal(View.java:8137) at android.view.View.access$3700(View.java:888) at android.view.View$PerformClick.run(View.java:30236) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8633) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
@darshanbhanushali