From 66ef1a82060f8a50edc29987c53356413721d67f Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 11 Jul 2020 19:21:41 -0400 Subject: [PATCH] Hide toolbars when reader color filter sheet is opened --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index aee6a53321..869db48423 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -233,10 +233,15 @@ class ReaderActivity : BaseRxActivity() } R.id.action_settings -> ReaderSettingsSheet(this).show() R.id.action_custom_filter -> { - ReaderColorFilterSheet(this) + val sheet = ReaderColorFilterSheet(this) // Remove dimmed backdrop so changes can be previewd .apply { window?.setDimAmount(0f) } - .show() + + // Hide toolbars while sheet is open for better preview + sheet.setOnDismissListener { setMenuVisibility(true) } + setMenuVisibility(false) + + sheet.show() } } return super.onOptionsItemSelected(item)