mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
force recomposition everytimes actionModeCounter is changed
This commit is contained in:
parent
9ad4ca9d77
commit
990760e72a
1 changed files with 1 additions and 4 deletions
|
@ -9,7 +9,6 @@ import androidx.compose.material3.LocalContentColor
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
import androidx.compose.material3.surfaceColorAtElevation
|
import androidx.compose.material3.surfaceColorAtElevation
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.derivedStateOf
|
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.mutableStateOf
|
import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
|
@ -46,9 +45,7 @@ fun MangaToolbar(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
backgroundAlphaProvider: () -> Float,
|
backgroundAlphaProvider: () -> Float,
|
||||||
) {
|
) {
|
||||||
val isActionMode by remember(actionModeCounter) {
|
val isActionMode = remember(actionModeCounter) { actionModeCounter > 0 }
|
||||||
derivedStateOf { actionModeCounter > 0 }
|
|
||||||
}
|
|
||||||
AppBar(
|
AppBar(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
title = title,
|
title = title,
|
||||||
|
|
Loading…
Reference in a new issue