mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 20:06:37 +01:00
Fix for properly switch between single and two-pane layouts on rotation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user