Hide toolbars when reader color filter sheet is opened
(cherry picked from commit 66ef1a82060f8a50edc29987c53356413721d67f)
This commit is contained in:
parent
dfa4eda33b
commit
7046d304e0
@ -304,10 +304,15 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
|
||||
}
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user