Fix ThemeTest

pull/485/head
Nick Rout 2 years ago
parent 61bbd406c5
commit cac02c418d

@ -212,7 +212,7 @@ class ThemeTest {
val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
dynamicLightColorScheme(LocalContext.current) dynamicLightColorScheme(LocalContext.current)
} else { } else {
LightAndroidColorScheme LightDefaultColorScheme
} }
assertColorSchemesEqual(colorScheme, MaterialTheme.colorScheme) assertColorSchemesEqual(colorScheme, MaterialTheme.colorScheme)
val gradientColors = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val gradientColors = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
@ -241,7 +241,7 @@ class ThemeTest {
val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
dynamicDarkColorScheme(LocalContext.current) dynamicDarkColorScheme(LocalContext.current)
} else { } else {
DarkAndroidColorScheme DarkDefaultColorScheme
} }
assertColorSchemesEqual(colorScheme, MaterialTheme.colorScheme) assertColorSchemesEqual(colorScheme, MaterialTheme.colorScheme)
val gradientColors = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val gradientColors = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {

Loading…
Cancel
Save