mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 13:17:48 +01:00
Hide toolbars when reader color filter sheet is opened
This commit is contained in:
parent
beaffc3870
commit
66ef1a8206
1 changed files with 7 additions and 2 deletions
|
@ -233,10 +233,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…
Reference in a new issue