From e18e4cfb7a07efb9cb110c97ac6b7a32f9004c52 Mon Sep 17 00:00:00 2001 From: Arian Baishya Date: Mon, 12 Aug 2024 21:40:33 -0500 Subject: [PATCH] style: move comment to more relevant line --- app/src/main/java/me/arianb/usb_hid_client/ui/theme/Theme.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/arianb/usb_hid_client/ui/theme/Theme.kt b/app/src/main/java/me/arianb/usb_hid_client/ui/theme/Theme.kt index 6f7cfbd..1a005be 100644 --- a/app/src/main/java/me/arianb/usb_hid_client/ui/theme/Theme.kt +++ b/app/src/main/java/me/arianb/usb_hid_client/ui/theme/Theme.kt @@ -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 } @@ -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) {