diff --git a/app/build.gradle b/app/build.gradle index 9b3f94eae..85a86d394 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -284,11 +284,10 @@ dependencies { implementation "org.ocpsoft.prettytime:prettytime:5.0.8.Final" // Jetpack Compose - implementation(platform('androidx.compose:compose-bom:2024.06.00')) - implementation 'androidx.compose.material3:material3:1.3.0-beta04' + implementation(platform('androidx.compose:compose-bom:2024.08.00')) + implementation 'androidx.compose.material3:material3' implementation 'androidx.activity:activity-compose' implementation 'androidx.compose.ui:ui-tooling-preview' - implementation 'androidx.compose.ui:ui-text:1.7.0-beta05' // Needed for parsing HTML to AnnotatedString implementation 'com.github.nanihadesuka:LazyColumnScrollbar:2.2.0' // Library loading for About screen diff --git a/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt b/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt index dbe8dca7b..2de5cd5f3 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/screens/AboutScreen.kt @@ -1,6 +1,7 @@ package org.schabi.newpipe.ui.screens import android.content.res.Configuration +import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth @@ -31,6 +32,7 @@ import org.schabi.newpipe.ui.theme.AppTheme private val TITLES = intArrayOf(R.string.tab_about, R.string.tab_licenses) +@OptIn(ExperimentalFoundationApi::class) @Composable @NonRestartableComposable fun AboutScreen(padding: PaddingValues) {