Skip to content

Commit

Permalink
fix crash on android
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Nov 9, 2023
1 parent 54743ea commit 013662b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ private fun CompactScreen(
var selectedPage by remember { mutableIntStateOf(0) }

Scaffold(
modifier = Modifier.safeDrawingPadding(),
bottomBar = {
NavigationBar {
component.pagerItems.forEachIndexed { index, item ->
Expand Down Expand Up @@ -82,7 +81,6 @@ private fun MediumScreen(
var selectedPage by remember { mutableIntStateOf(0) }

Scaffold(
modifier = Modifier.safeDrawingPadding(),
) {
Row(modifier = Modifier.padding(it)) {
NavigationRail {
Expand Down Expand Up @@ -123,7 +121,6 @@ private fun ExpandedScreen(
var selectedPage by remember { mutableIntStateOf(0) }

Scaffold(
modifier = Modifier.safeDrawingPadding(),
) {
PermanentNavigationDrawer(
modifier = Modifier.padding(it),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,7 @@ private fun CompactScreen(component: SeriesComponent) {
LazyColumn(
modifier = Modifier.fillMaxWidth()
) {
item(
key = {
listOf(
current.series.seasons,
current.series.languages
)
}
) {
item {
SeasonAndLanguageButtons(
current.series.currentSeason,
current.series.currentLanguage,
Expand Down Expand Up @@ -167,14 +160,7 @@ private fun DefaultScreen(component: SeriesComponent) {
modifier = Modifier.fillMaxWidth(),
contentPadding = PaddingValues(16.dp)
) {
item(
key = {
listOf(
current.series.seasons,
current.series.languages
)
}
) {
item {
Row(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
Expand Down

0 comments on commit 013662b

Please sign in to comment.