Guard bubble inset request against detached view.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Alex Hart
2026-03-27 14:38:16 -03:00
parent 14d4228e86
commit 1ba9793943

View File

@@ -655,10 +655,12 @@ class ConversationFragment :
if (args.conversationScreenType == ConversationScreenType.BUBBLE) {
binding.root.setNavigationBarInsetOverride(0)
view.post {
if (view.isAttachedToWindow) {
ViewCompat.requestApplyInsets(binding.root)
binding.root.requestLayout()
}
}
}
disposables.bindTo(viewLifecycleOwner)