Hide dynamic theming for unsupported devices

This commit is contained in:
Sad Ellie 2023-02-26 20:28:46 +04:00
parent fa1ec777cd
commit e021f8add3

View File

@ -18,6 +18,7 @@
package com.sadellie.unitto.feature.settings
import android.os.Build
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
import androidx.compose.animation.fadeIn
@ -31,10 +32,10 @@ import androidx.compose.material.icons.filled.Palette
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.sadellie.unitto.core.ui.common.UnittoScreenWithLargeTopBar
import com.sadellie.unitto.core.ui.common.UnittoListItem
import com.sadellie.unitto.core.ui.R
import com.sadellie.unitto.core.ui.common.NavigateUpButton
import com.sadellie.unitto.core.ui.common.UnittoListItem
import com.sadellie.unitto.core.ui.common.UnittoScreenWithLargeTopBar
import io.github.sadellie.themmo.ThemingMode
import io.github.sadellie.themmo.ThemmoController
@ -71,6 +72,7 @@ internal fun ThemesScreen(
)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
item {
UnittoListItem(
leadingContent = {
@ -88,6 +90,7 @@ internal fun ThemesScreen(
}
)
}
}
item {
AnimatedVisibility(