From 45b04e9edb9d1b9eb25a2322428a887aa60f02b2 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 19 Jul 2021 00:29:48 -0400 Subject: [PATCH] Remove SuppressLint in ThemePreference --- .../java/eu/kanade/tachiyomi/ui/setting/ThemePreference.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/ThemePreference.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/ThemePreference.kt index 4df6880887..2ec4810777 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/ThemePreference.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/ThemePreference.kt @@ -212,7 +212,6 @@ class ThemePreference @JvmOverloads constructor(context: Context, attrs: Attribu val binding = ThemeItemBinding.bind(view) - @SuppressLint("InlinedApi") override fun bindView(item: ThemeItem, payloads: List) { binding.themeNameText.setText( if (item.isDarkTheme) { @@ -234,7 +233,8 @@ class ThemePreference @JvmOverloads constructor(context: Context, attrs: Attribu binding.themeSelected.alpha = if (themeMatchesApp) 1f else 0.5f binding.checkbox.alpha = if (themeMatchesApp) 1f else 0.5f } - if (item.theme.styleRes == R.style.Theme_Tachiyomi_Monet) { + if (item.theme.styleRes == R.style.Theme_Tachiyomi_Monet && + Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val nightMode = item.isDarkTheme val appBar = context.contextCompatColor( if (nightMode) android.R.color.system_neutral1_900