Set reader menu visibility on system UI visibility change (closes #3149 and #2068)

This commit is contained in:
arkon 2020-05-30 19:07:31 -04:00
parent 759795940b
commit e3ed12b5d2

View File

@ -152,6 +152,11 @@ class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>()
config = ReaderConfig()
initializeMenu()
// Avoid status bar showing up on rotation
window.decorView.setOnSystemUiVisibilityChangeListener {
setMenuVisibility(menuVisible, animate = false)
}
}
/**