Skip to content

Commit

Permalink
Fix deprecation from Material3 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Feb 23, 2024
1 parent 5bb65d5 commit 68a7740
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Card
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -91,7 +91,7 @@ private fun ListStreamView(
)

if (index < playlist.items.lastIndex) {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -149,7 +149,7 @@ private fun ListsHome(onContentSelected: (ContentList) -> Unit) {
)

if (index < section.contentList.lastIndex) {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -114,7 +114,7 @@ fun ListsSubSection(
)

if (index < items.itemCount - 1) {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.RadioButton
import androidx.compose.material3.Surface
Expand Down Expand Up @@ -94,7 +94,7 @@ private fun DialogContent(
text = "Add to the playlist",
style = MaterialTheme.typography.headlineMedium
)
Divider()
HorizontalDivider()
LazyColumn(
modifier = Modifier
.weight(0.5f)
Expand All @@ -113,7 +113,7 @@ private fun DialogContent(
)
}
}
Divider()
HorizontalDivider()
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceBetween
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.selection.toggleable
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.ListItem
import androidx.compose.material3.Text
Expand Down Expand Up @@ -44,7 +44,7 @@ fun PlaybackSpeedSettings(
)

if (index < playbackSpeeds.lastIndex) {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.HearingDisabled
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.ListItem
import androidx.compose.material3.Text
Expand Down Expand Up @@ -63,7 +63,7 @@ fun TrackSelectionSettings(
)
}
)
Divider()
HorizontalDivider()
}
item {
SettingsOption(
Expand All @@ -74,7 +74,7 @@ fun TrackSelectionSettings(
Text(text = stringResource(R.string.disabled))
}
)
Divider()
HorizontalDivider()
}
tracksSetting.tracks.forEach { group ->
items(group.length) { trackIndex ->
Expand Down Expand Up @@ -117,7 +117,7 @@ fun TrackSelectionSettings(
)
}
item {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.ExpandMore
import androidx.compose.material.icons.filled.Search
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Divider
import androidx.compose.material3.DropdownMenu
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
Expand Down Expand Up @@ -165,7 +165,7 @@ private fun SearchResultList(
)

if (index < items.itemCount - 1) {
Divider()
HorizontalDivider()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
Expand Down Expand Up @@ -70,7 +70,7 @@ fun ShowcasesHome(navController: NavController) {
onClick = { navController.navigate(NavigationRoutes.simplePlayer) }
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.story),
Expand All @@ -93,7 +93,7 @@ fun ShowcasesHome(navController: NavController) {
)

if (index < playlists.lastIndex) {
Divider()
HorizontalDivider()
}
}
}
Expand All @@ -112,7 +112,7 @@ fun ShowcasesHome(navController: NavController) {
)
}

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.auto),
Expand Down Expand Up @@ -140,30 +140,30 @@ fun ShowcasesHome(navController: NavController) {
}
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.adaptive),
modifier = itemModifier,
onClick = { navController.navigate(NavigationRoutes.adaptive) }
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.player_swap),
modifier = itemModifier,
onClick = { navController.navigate(NavigationRoutes.playerSwap) }
)
Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.tracker_example),
modifier = itemModifier,
onClick = { navController.navigate(NavigationRoutes.trackingSample) }
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.update_media_item_example),
Expand All @@ -175,7 +175,7 @@ fun ShowcasesHome(navController: NavController) {
}
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.smooth_seeking_example),
Expand All @@ -187,7 +187,7 @@ fun ShowcasesHome(navController: NavController) {
}
)

Divider()
HorizontalDivider()

DemoListItemView(
title = stringResource(R.string.video_360),
Expand Down

0 comments on commit 68a7740

Please sign in to comment.