From a132f630af8ac684359614334c15ba79de427dd7 Mon Sep 17 00:00:00 2001 From: sagar-sharma-adobe Date: Fri, 27 Mar 2026 00:04:45 +0530 Subject: [PATCH 1/3] Adding fix for Safe drawing area to Message Presentable --- .../mobile/services/ui/message/views/MessageContent.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/MessageContent.kt b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/MessageContent.kt index c8e078f47..39bef6a71 100644 --- a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/MessageContent.kt +++ b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/MessageContent.kt @@ -13,6 +13,9 @@ package com.adobe.marketing.mobile.services.ui.message.views import android.view.ViewGroup import android.webkit.WebView +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.systemBars +import androidx.compose.foundation.layout.windowInsetsPadding import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -75,6 +78,7 @@ internal fun MessageContent( } }, modifier = modifier + .windowInsetsPadding(WindowInsets.systemBars) .clip(RoundedCornerShape(inAppMessageSettings.cornerRadius.dp)) .testTag(MessageTestTags.MESSAGE_CONTENT) ) From 282c9d7fa45e1c6c882fd57a34e9ef01b909e5f0 Mon Sep 17 00:00:00 2001 From: sagar-sharma-adobe Date: Fri, 27 Mar 2026 01:36:01 +0530 Subject: [PATCH 2/3] Adding logic to inherit original activities status bar theme --- .../mobile/services/ui/message/views/Message.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt index 5d15352f0..8a471ad57 100644 --- a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt +++ b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt @@ -11,6 +11,7 @@ package com.adobe.marketing.mobile.services.ui.message.views +import android.app.Activity import android.content.pm.PackageManager.NameNotFoundException import android.os.Build import android.view.ViewGroup @@ -18,6 +19,7 @@ import android.view.WindowManager import android.webkit.WebView import androidx.activity.compose.BackHandler import androidx.compose.animation.core.MutableTransitionState +import androidx.core.view.WindowCompat import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.ui.platform.LocalContext @@ -149,6 +151,15 @@ internal fun Message( it.attributes.fitInsetsTypes = 0 it.attributes.fitInsetsSides = 0 } + + // Inherit the host app's system bar appearance so the dialog's + // status/navigation bar icons match the app's theme + (context as? Activity)?.window?.let { activityWindow -> + val activityController = WindowCompat.getInsetsController(activityWindow, activityWindow.decorView) + val dialogController = WindowCompat.getInsetsController(it, it.decorView) + dialogController.isAppearanceLightStatusBars = activityController.isAppearanceLightStatusBars + dialogController.isAppearanceLightNavigationBars = activityController.isAppearanceLightNavigationBars + } } // Backdrop for the InAppMessage only takes into effect if the InAppMessage is taking over the UI From 00a8a53a1ddb25f22d9e0f556160de7ada17cbcf Mon Sep 17 00:00:00 2001 From: sagar-sharma-adobe Date: Fri, 27 Mar 2026 02:34:53 +0530 Subject: [PATCH 3/3] SpotlessApply --- .../adobe/marketing/mobile/services/ui/message/views/Message.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt index 8a471ad57..1063a25aa 100644 --- a/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt +++ b/code/core/src/phone/java/com/adobe/marketing/mobile/services/ui/message/views/Message.kt @@ -19,7 +19,6 @@ import android.view.WindowManager import android.webkit.WebView import androidx.activity.compose.BackHandler import androidx.compose.animation.core.MutableTransitionState -import androidx.core.view.WindowCompat import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.ui.platform.LocalContext @@ -27,6 +26,7 @@ import androidx.compose.ui.platform.LocalView import androidx.compose.ui.window.Dialog import androidx.compose.ui.window.DialogProperties import androidx.compose.ui.window.DialogWindowProvider +import androidx.core.view.WindowCompat import com.adobe.marketing.mobile.services.ui.Presentable import com.adobe.marketing.mobile.services.ui.common.PresentationStateManager import com.adobe.marketing.mobile.services.ui.message.GestureTracker