Skip to content

Commit

Permalink
Don't set focusable for banners
Browse files Browse the repository at this point in the history
We want focusable on for non banner IAMs to support keyboard input, but we don't want it on for banners since it restricts interacting with the app underneath the banner
  • Loading branch information
emawby committed Aug 29, 2024
1 parent 9166053 commit 8697cb7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ internal class InAppMessageView(
)
popupWindow?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
popupWindow?.isTouchable = true
popupWindow?.isFocusable = true
// Focusable allows keyboard input for HTML IAMs, but also prevents interacting under banners
popupWindow?.isFocusable = !displayPosition.isBanner

// NOTE: This is required for getting fullscreen under notches working in portrait mode
popupWindow?.isClippingEnabled = false
var gravity = 0
Expand Down

0 comments on commit 8697cb7

Please sign in to comment.