mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-12 21:35:18 +01:00
Fix tab bar hiding when tapping on resetting chapter history
This commit is contained in:
parent
ca07d3dbb3
commit
42d297c02f
@ -659,7 +659,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
||||
|
||||
fun showTabBar(show: Boolean, animate: Boolean = true) {
|
||||
if (animate) {
|
||||
if (show) {
|
||||
if (show && !binding.tabsFrameLayout.isVisible) {
|
||||
binding.tabsFrameLayout.alpha = 0f
|
||||
binding.tabsFrameLayout.isVisible = true
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ import eu.kanade.tachiyomi.data.download.model.Download
|
||||
import eu.kanade.tachiyomi.data.library.LibraryUpdateService
|
||||
import eu.kanade.tachiyomi.databinding.RecentsControllerBinding
|
||||
import eu.kanade.tachiyomi.ui.base.controller.BaseController
|
||||
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
||||
import eu.kanade.tachiyomi.ui.main.BottomSheetController
|
||||
import eu.kanade.tachiyomi.ui.main.MainActivity
|
||||
import eu.kanade.tachiyomi.ui.main.RootSearchInterface
|
||||
@ -579,7 +580,9 @@ class RecentsController(bundle: Bundle? = null) :
|
||||
}
|
||||
} else {
|
||||
if (type == ControllerChangeType.POP_EXIT) presenter.onDestroy()
|
||||
(activity as? MainActivity)?.showTabBar(false)
|
||||
if (router.backstack.lastOrNull()?.controller() !is DialogController) {
|
||||
(activity as? MainActivity)?.showTabBar(false)
|
||||
}
|
||||
snack?.dismiss()
|
||||
}
|
||||
setBottomPadding()
|
||||
|
Loading…
Reference in New Issue
Block a user