fix: 由于 LazyColumn 的渲染策略导致旋转屏幕后对话框延迟打开
This commit is contained in:
parent
91652aedb9
commit
8b1ec55ff9
1 changed files with 2 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.mutableStateOf
|
import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.saveable.rememberSaveable
|
import androidx.compose.runtime.saveable.rememberSaveable
|
||||||
|
import androidx.compose.runtime.remember
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
|
@ -57,7 +58,7 @@ fun SettingsAboutLicence(
|
||||||
items = libraries?.libraries ?: listOf(),
|
items = libraries?.libraries ?: listOf(),
|
||||||
key = { it.artifactId }
|
key = { it.artifactId }
|
||||||
) { library ->
|
) { library ->
|
||||||
var openDialog by rememberSaveable { mutableStateOf(false) }
|
var openDialog by remember { mutableStateOf(false) }
|
||||||
SettingsItem(
|
SettingsItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue