Utilize an effect to initialize the current anchor.

This commit is contained in:
Alex Hart authored and jeffrey-signal committed 2025-10-29 14:33:50 -04:00
1 parent 63ab448a27
commit 8fbfc40ed5
1 file changed
+6
@@ -429,6 +429,12 @@ class MainActivity : PassphraseRequiredActivity(), VoiceNoteMediaControllerOwner
}
}
LaunchedEffect(paneExpansionState.currentAnchor, detailAndListAnchor) {
if (paneExpansionState.currentAnchor == null) {
paneExpansionState.animateTo(detailAndListAnchor)
}
}
LaunchedEffect(paneExpansionState.currentAnchor, detailOnlyAnchor, listOnlyAnchor, detailAndListAnchor) {
val isFullScreenPane = when (paneExpansionState.currentAnchor) {
listOnlyAnchor, detailOnlyAnchor -> {