Search in sources :

Example 1 with CometChatMessageListActivity

use of com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity in project android-java-chat-push-notification-app by cometchat-pro.

the class CometChatMessageActions method onDismiss.

@Override
public void onDismiss(@NonNull DialogInterface dialog) {
    super.onDismiss(dialog);
    Activity activity = getActivity();
    if (activity != null)
        if (type != null && type == CometChatMessageListActivity.class.getName())
            ((CometChatMessageListActivity) activity).handleDialogClose(dialog);
        else
            ((CometChatThreadMessageListActivity) activity).handleDialogClose(dialog);
}
Also used : CometChatThreadMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity) CometChatMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity) CometChatMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity) CometChatThreadMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity) Activity(android.app.Activity)

Example 2 with CometChatMessageListActivity

use of com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity in project android-java-chat-push-notification-app by cometchat-pro.

the class CometChatMessageActions method onCancel.

@Override
public void onCancel(@NonNull DialogInterface dialog) {
    super.onCancel(dialog);
    Activity activity = getActivity();
    if (activity != null)
        if (type != null && type == CometChatMessageListActivity.class.getName())
            ((CometChatMessageListActivity) activity).handleDialogClose(dialog);
        else
            ((CometChatThreadMessageListActivity) activity).handleDialogClose(dialog);
}
Also used : CometChatThreadMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity) CometChatMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity) CometChatMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity) CometChatThreadMessageListActivity(com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity) Activity(android.app.Activity)

Aggregations

Activity (android.app.Activity)2 CometChatMessageListActivity (com.cometchat.pro.uikit.ui_components.messages.message_list.CometChatMessageListActivity)2 CometChatThreadMessageListActivity (com.cometchat.pro.uikit.ui_components.messages.thread_message_list.CometChatThreadMessageListActivity)2