Fix tab bar hiding when tapping on resetting chapter history

This commit is contained in:
Jays2Kings 2021-04-08 21:29:23 -04:00
parent ca07d3dbb3
commit 42d297c02f
2 changed files with 5 additions and 2 deletions

View File

@ -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
}

View File

@ -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()