Skip to content

Commit

Permalink
WMSDK-404: fix hide view
Browse files Browse the repository at this point in the history
  • Loading branch information
sozinov committed Jan 31, 2025
1 parent b19519c commit 53bb2c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal class MobileConfigRepositoryImpl(

private val mutex = Mutex()

private var configState = MutableStateFlow<InAppConfig?>(null)
private val configState = MutableStateFlow<InAppConfig?>(null)

init {
Mindbox.mindboxScope.launch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ internal abstract class AbstractInAppViewHolder<T : InAppType> : InAppViewHolder

override fun hide() {
(currentDialog.parent as? ViewGroup?)?.apply {
removeView(currentDialog)
post { removeView(currentDialog) }
}
mindboxLogI("hide ${wrapper.inAppType.inAppId} on ${this.hashCode()}")
restoreKeyboard()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ internal class ModalWindowInAppViewHolder(

override fun hide() {
(currentDialog.parent as? ViewGroup?)?.apply {
removeView(currentBackground)
mindboxLogI("Hide ${wrapper.inAppType.inAppId} on ${this.hashCode()}")
post { removeView(currentBackground) }
}
super.hide()
}
Expand Down

0 comments on commit 53bb2c9

Please sign in to comment.