From e8623fbd7d9f9a9bab8669070a0cfd8f560fdae5 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 2 May 2020 10:40:55 -0400 Subject: [PATCH] Show 32-bit color setting in reader sheet --- .../eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index 00839dc56..1654cf18f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -1,5 +1,6 @@ package eu.kanade.tachiyomi.ui.reader +import android.os.Build import android.os.Bundle import android.widget.CompoundButton import android.widget.Spinner @@ -29,6 +30,7 @@ import kotlinx.android.synthetic.main.reader_settings_sheet.pager_prefs_group import kotlinx.android.synthetic.main.reader_settings_sheet.rotation_mode import kotlinx.android.synthetic.main.reader_settings_sheet.scale_type import kotlinx.android.synthetic.main.reader_settings_sheet.show_page_number +import kotlinx.android.synthetic.main.reader_settings_sheet.true_color import kotlinx.android.synthetic.main.reader_settings_sheet.viewer import kotlinx.android.synthetic.main.reader_settings_sheet.webtoon_prefs_group import kotlinx.android.synthetic.main.reader_settings_sheet.webtoon_side_padding @@ -88,6 +90,11 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia keepscreen.bindToPreference(preferences.keepScreenOn()) long_tap.bindToPreference(preferences.readWithLongTap()) always_show_chapter_transition.bindToPreference(preferences.alwaysShowChapterTransition()) + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + true_color.visible() + true_color.bindToPreference(preferences.trueColor()) + } } /**