Skip to content

Commit

Permalink
style: move comment to more relevant line
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian04 committed Aug 13, 2024
1 parent 8af7d0e commit e18e4cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private val LightColorScheme = lightColorScheme(
)

fun isDynamicColorAvailable(): Boolean {
// Dynamic color is available on Android 12+
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
}

Expand All @@ -52,7 +53,6 @@ fun USBHIDClientTheme(
val dynamicColor = preferencesState.isDynamicColorEnabled

val colorScheme = when {
// Dynamic color is available on Android 12+
dynamicColor && isDynamicColorAvailable() -> {
val context = LocalContext.current
if (darkTheme) {
Expand Down

0 comments on commit e18e4cf

Please sign in to comment.