Clear window insets listener when view is detached from window.

This commit is contained in:
Alex Hart
2025-04-09 11:55:19 -03:00
committed by Michelle Tang
parent 970f5f2480
commit 0227af199b
3 changed files with 23 additions and 6 deletions

View File

@@ -1272,7 +1272,7 @@ class ConversationFragment :
inputPanel.setHideForMessageRequestState(inputDisabled)
if (inputDisabled) {
WindowUtil.setNavigationBarColor(requireActivity(), disabledInputView.color)
binding.navBar.setBackgroundColor(disabledInputView.color)
} else {
disabledInputView.clear()
}
@@ -1482,7 +1482,7 @@ class ConversationFragment :
)
)
WindowUtil.setNavigationBarColor(requireActivity(), ContextCompat.getColor(requireContext(), navColor))
binding.navBar.setBackgroundColor(ContextCompat.getColor(requireContext(), navColor))
}
private fun presentChatColors(chatColors: ChatColors) {