Skip to content

Commit

Permalink
make IAM's popup window non-focusable
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
nan-li committed Feb 20, 2024
1 parent d618612 commit 3fd9223
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ internal class InAppMessageView(
parentRelativeLayout,
if (hasBackground) WindowManager.LayoutParams.MATCH_PARENT else pageWidth,
if (hasBackground) WindowManager.LayoutParams.MATCH_PARENT else WindowManager.LayoutParams.WRAP_CONTENT,
true,
false,
)
popupWindow!!.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
popupWindow!!.isTouchable = true
Expand Down

0 comments on commit 3fd9223

Please sign in to comment.