mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
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:
+1
-1
@@ -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