You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal/display/impl/InAppMessageView.kt
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ internal class InAppMessageView(
49
49
privatevarwebView:WebView?,
50
50
privatevalmessageContent:InAppMessageContent,
51
51
privatevaldisableDragDismiss:Boolean,
52
+
privatevalhideGrayOverlay:Boolean,
52
53
) {
53
54
privatevar popupWindow:PopupWindow?=null
54
55
@@ -611,13 +612,19 @@ internal class InAppMessageView(
611
612
cardViewAnimCallback,
612
613
)
613
614
615
+
var overlayColor =Color.parseColor("#BB000000")
616
+
617
+
if (hideGrayOverlay) {
618
+
overlayColor =Color.TRANSPARENT
619
+
}
620
+
614
621
// Animate background behind the message so it doesn't just show the dark transparency
615
622
val backgroundAnimation =
616
623
animateBackgroundColor(
617
624
backgroundView,
618
625
IN_APP_BACKGROUND_ANIMATION_DURATION_MS,
619
626
ACTIVITY_BACKGROUND_COLOR_EMPTY,
620
-
ACTIVITY_BACKGROUND_COLOR_FULL,
627
+
overlayColor,
621
628
backgroundAnimCallback,
622
629
)
623
630
messageAnimation.start()
@@ -634,11 +641,17 @@ internal class InAppMessageView(
634
641
}
635
642
}
636
643
644
+
var overlayColor =Color.parseColor("#BB000000")
645
+
646
+
if (hideGrayOverlay) {
647
+
overlayColor =Color.TRANSPARENT
648
+
}
649
+
637
650
// Animate background behind the message so it hides before being removed from the view
638
651
animateBackgroundColor(
639
652
backgroundView,
640
653
IN_APP_BACKGROUND_ANIMATION_DURATION_MS,
641
-
ACTIVITY_BACKGROUND_COLOR_FULL,
654
+
overlayColor,
642
655
ACTIVITY_BACKGROUND_COLOR_EMPTY,
643
656
animCallback,
644
657
)
@@ -681,7 +694,6 @@ internal class InAppMessageView(
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal/display/impl/WebViewManager.kt
0 commit comments