mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-22 21:41:15 +01:00
Fixed being able to hide chaptersbottom sheet on reader when recreating activity
This commit is contained in:
parent
b6c0efd875
commit
71352a6fe1
@ -304,7 +304,6 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
|
|||||||
onBackPressed()
|
onBackPressed()
|
||||||
}
|
}
|
||||||
|
|
||||||
BottomSheetBehavior.from(chapters_bottom_sheet).isHideable = true
|
|
||||||
// Init listeners on bottom menu
|
// Init listeners on bottom menu
|
||||||
page_seekbar.setOnSeekBarChangeListener(object : SimpleSeekBarListener() {
|
page_seekbar.setOnSeekBarChangeListener(object : SimpleSeekBarListener() {
|
||||||
override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) {
|
override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) {
|
||||||
@ -316,6 +315,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
|
|||||||
|
|
||||||
// Set initial visibility
|
// Set initial visibility
|
||||||
setMenuVisibility(menuVisible)
|
setMenuVisibility(menuVisible)
|
||||||
|
chapters_bottom_sheet.sheetBehavior?.isHideable = !menuVisible
|
||||||
if (!menuVisible)
|
if (!menuVisible)
|
||||||
chapters_bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_HIDDEN
|
chapters_bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_HIDDEN
|
||||||
reader_menu.doOnApplyWindowInsets { v, insets, _ ->
|
reader_menu.doOnApplyWindowInsets { v, insets, _ ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user