Fix or suppress deprecations
This commit is contained in:
@@ -265,7 +265,7 @@ fun <T : Enum<T>> EnumPager(
|
||||
content: @Composable (item: T) -> Unit
|
||||
) {
|
||||
val items = remember {
|
||||
value.declaringClass.enumConstants!!
|
||||
value.declaringJavaClass.enumConstants!!
|
||||
}
|
||||
|
||||
Pager(
|
||||
|
||||
@@ -26,6 +26,7 @@ data class Typography(
|
||||
|
||||
val LocalTypography = staticCompositionLocalOf<Typography> { TODO() }
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@OptIn(ExperimentalTextApi::class)
|
||||
@Composable
|
||||
fun rememberTypography(color: Color): Typography {
|
||||
|
||||
Reference in New Issue
Block a user