Allow specification of whether we utilize windowTypes to lay out inset guidelines.

This commit is contained in:
Alex Hart
2025-04-15 10:50:23 -03:00
committed by Cody Henthorne
parent b46d891183
commit bd03f21cdf
2 changed files with 23 additions and 0 deletions

View File

@@ -590,6 +590,8 @@ class ConversationFragment :
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
binding.toolbar.isBackInvokedCallbackEnabled = false
binding.root.setUseWindowTypes(resources.getWindowSizeClass().isCompact())
disposables.bindTo(viewLifecycleOwner)
if (requireActivity() is ConversationActivity) {