Fix update of windowsizeclass.

This commit is contained in:
Alex Hart
2025-10-27 14:39:17 -03:00
committed by jeffrey-signal
parent 21138b9190
commit 75a53974a4
3 changed files with 15 additions and 5 deletions

View File

@@ -430,6 +430,10 @@ class MainActivity : PassphraseRequiredActivity(), VoiceNoteMediaControllerOwner
}
}
LaunchedEffect(windowSizeClass) {
paneExpansionState.animateTo(detailAndListAnchor)
}
LaunchedEffect(paneExpansionState.currentAnchor, detailOnlyAnchor, listOnlyAnchor, detailAndListAnchor) {
val isFullScreenPane = when (paneExpansionState.currentAnchor) {
listOnlyAnchor, detailOnlyAnchor -> {