From 8c30e636071fcdf0b6fa9581bdcbe2b47cded6e8 Mon Sep 17 00:00:00 2001 From: Jakub Dzubak Date: Tue, 17 Dec 2024 15:23:41 +0000 Subject: [PATCH] Pull request #88: MCA-4357 Sync with Android repo Merge in MML/infobip-mobile-messaging-huawei from jdzubak-MCA-4357-sync-with-android to master Squashed commit of the following: commit 0706111974c0270685b17471d4e9c5d0157165eb Author: Jakub Dzubak Date: Tue Dec 17 16:16:49 2024 +0100 MCA-4357 Sync with Android repo --- .../messaging/chat/attachments/InAppChatAttachmentHelper.java | 2 +- .../org/infobip/mobile/messaging/chat/view/InAppChatFragment.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/attachments/InAppChatAttachmentHelper.java b/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/attachments/InAppChatAttachmentHelper.java index 5a1fad77..c2cf8feb 100644 --- a/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/attachments/InAppChatAttachmentHelper.java +++ b/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/attachments/InAppChatAttachmentHelper.java @@ -169,6 +169,6 @@ private static Uri getUriFromMediaStoreURI(Uri mediaStoreUri, FragmentActivity a public interface InAppChatAttachmentHelperListener { void onAttachmentCreated(InAppChatMobileAttachment attachment); - void onError(Context context, InternalSdkError.InternalSdkException exception); + void onError(Context context, Exception exception); } } diff --git a/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/view/InAppChatFragment.kt b/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/view/InAppChatFragment.kt index a9019058..87a616bd 100644 --- a/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/view/InAppChatFragment.kt +++ b/infobip-mobile-messaging-huawei-chat-sdk/src/main/java/org/infobip/mobile/messaging/chat/view/InAppChatFragment.kt @@ -734,7 +734,7 @@ class InAppChatFragment : Fragment(), InAppChatFragmentActivityResultDelegate.Re override fun onError( context: Context?, - exception: InternalSdkError.InternalSdkException? + exception: Exception? ) { if (exception!!.message == InternalSdkError.ERROR_ATTACHMENT_MAX_SIZE_EXCEEDED.get()) { MobileMessagingLogger.e(