Merge pull request #1485 from davotoula/fix-for-orientation-issue-following-removing-windowSizeClass-from-global-settings

Fix for properly switch between single and two-pane layouts on rotation
This commit is contained in:
Vitor Pamplona
2025-09-18 14:45:23 -04:00
committed by GitHub

View File

@@ -43,7 +43,7 @@ fun MessagesScreen(
val act = LocalContext.current.getActivity()
val windowSizeClass = calculateWindowSizeClass(act)
val twoPane by remember {
val twoPane by remember(windowSizeClass.widthSizeClass) {
derivedStateOf {
when (windowSizeClass.widthSizeClass) {
WindowWidthSizeClass.Compact -> false