mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 00:17:41 +01:00
Guard bubble inset request against detached view.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user