Skip to content

Commit 3fd9223

Browse files
committed
make IAM's popup window non-focusable
* Revert the focusable property of the PopupWindow that displays an IAM view to be false. This was added as part of fullbleed IAM implementation in #1481, but does not appear to be necessary. * This allows banner-style top and bottom IAMs to remain on the screen while the user interacts with the app. * Otherwise, currently, tapping on the background dismisses the banner-style IAM.
1 parent d618612 commit 3fd9223

File tree

1 file changed

+1
-1
lines changed
  • OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal/display/impl

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/in-app-messages/src/main/java/com/onesignal/inAppMessages/internal/display/impl/InAppMessageView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ internal class InAppMessageView(
274274
parentRelativeLayout,
275275
if (hasBackground) WindowManager.LayoutParams.MATCH_PARENT else pageWidth,
276276
if (hasBackground) WindowManager.LayoutParams.MATCH_PARENT else WindowManager.LayoutParams.WRAP_CONTENT,
277-
true,
277+
false,
278278
)
279279
popupWindow!!.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
280280
popupWindow!!.isTouchable = true

0 commit comments

Comments
 (0)