Fix getViewLifecycleOwner crash in bubble view.post callback.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Alex Hart
2026-04-02 11:33:23 -03:00
committed by GitHub
parent 265f71dff3
commit eb2dfb3fb6
@@ -657,7 +657,7 @@ class ConversationFragment :
if (args.conversationScreenType == ConversationScreenType.BUBBLE) {
binding.root.setNavigationBarInsetOverride(0)
view.post {
if (view.isAttachedToWindow) {
if (isAdded && this@ConversationFragment.view != null) {
ViewCompat.requestApplyInsets(binding.root)
binding.root.requestLayout()
}