mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Utilize an effect to initialize the current anchor.
This commit is contained in:
committed by
jeffrey-signal
parent
63ab448a27
commit
8fbfc40ed5
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user