We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9baf3c commit 53b926bCopy full SHA for 53b926b
widgetssdk/src/main/java/com/glia/widgets/view/head/ActivityWatcherForChatHead.kt
@@ -121,7 +121,11 @@ internal class ActivityWatcherForChatHead(
121
override fun removeChatHeadLayoutIfPresent() {
122
Logger.d(TAG, "Bubble: remove application-only bubble")
123
saveBubblePosition()
124
- (fetchGliaOrRootView() as? ViewGroup)?.removeView(chatHeadLayout)
+ (fetchGliaOrRootView() as? ViewGroup)?.let { gliaOrRootView ->
125
+ gliaOrRootView.post {
126
+ gliaOrRootView.removeView(chatHeadLayout)
127
+ }
128
129
chatHeadLayout = null
130
}
131
0 commit comments