mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-09 18:48:55 +01:00
Use primitive state holders
This commit is contained in:
@@ -11,7 +11,7 @@ import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
@@ -69,7 +69,7 @@ fun LibraryPager(
|
||||
|
||||
remember(isLandscape) { getColumnsForOrientation(isLandscape) }
|
||||
} else {
|
||||
remember { mutableStateOf(0) }
|
||||
remember { mutableIntStateOf(0) }
|
||||
}
|
||||
|
||||
when (displayMode) {
|
||||
|
||||
Reference in New Issue
Block a user