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
* By extending PopupWindow, we can mark it as dismissed by us, and we can add a custom listener to the dismiss event and receive this flag.
* In InAppMessageView which owns the popup window, it will listen to the popup window's dismissal event and trigger the post-dismissal flow. It also sets the manual flag when `removeAllViews()` is invoked.
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal/display/impl/InAppMessageView.kt
+16-9Lines changed: 16 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@ import android.view.ViewGroup
14
14
importandroid.view.WindowManager
15
15
importandroid.view.animation.Animation
16
16
importandroid.webkit.WebView
17
-
importandroid.widget.PopupWindow
18
17
importandroid.widget.RelativeLayout
19
18
importandroidx.cardview.widget.CardView
20
19
importandroidx.core.widget.PopupWindowCompat
@@ -51,7 +50,7 @@ internal class InAppMessageView(
51
50
privatevaldisableDragDismiss:Boolean,
52
51
privatevalhideGrayOverlay:Boolean,
53
52
) {
54
-
privatevar popupWindow:PopupWindow?=null
53
+
privatevar popupWindow:OSPopupWindow?=null
55
54
56
55
internalinterfaceInAppMessageViewListener {
57
56
funonMessageWasDisplayed()
@@ -86,6 +85,16 @@ internal class InAppMessageView(
0 commit comments