fix: 由于 LazyColumn 的渲染策略导致旋转屏幕后对话框延迟打开

This commit is contained in:
Super12138 2026-02-14 15:13:01 +08:00 committed by GitHub
parent 91652aedb9
commit 8b1ec55ff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@ -57,7 +58,7 @@ fun SettingsAboutLicence(
items = libraries?.libraries ?: listOf(),
key = { it.artifactId }
) { library ->
var openDialog by rememberSaveable { mutableStateOf(false) }
var openDialog by remember { mutableStateOf(false) }
SettingsItem(
headlineContent = {
Row(