mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 04:35:07 +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) {
|
fun showTabBar(show: Boolean, animate: Boolean = true) {
|
||||||
if (animate) {
|
if (animate) {
|
||||||
if (show) {
|
if (show && !binding.tabsFrameLayout.isVisible) {
|
||||||
binding.tabsFrameLayout.alpha = 0f
|
binding.tabsFrameLayout.alpha = 0f
|
||||||
binding.tabsFrameLayout.isVisible = true
|
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.data.library.LibraryUpdateService
|
||||||
import eu.kanade.tachiyomi.databinding.RecentsControllerBinding
|
import eu.kanade.tachiyomi.databinding.RecentsControllerBinding
|
||||||
import eu.kanade.tachiyomi.ui.base.controller.BaseController
|
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.BottomSheetController
|
||||||
import eu.kanade.tachiyomi.ui.main.MainActivity
|
import eu.kanade.tachiyomi.ui.main.MainActivity
|
||||||
import eu.kanade.tachiyomi.ui.main.RootSearchInterface
|
import eu.kanade.tachiyomi.ui.main.RootSearchInterface
|
||||||
@ -579,7 +580,9 @@ class RecentsController(bundle: Bundle? = null) :
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (type == ControllerChangeType.POP_EXIT) presenter.onDestroy()
|
if (type == ControllerChangeType.POP_EXIT) presenter.onDestroy()
|
||||||
|
if (router.backstack.lastOrNull()?.controller() !is DialogController) {
|
||||||
(activity as? MainActivity)?.showTabBar(false)
|
(activity as? MainActivity)?.showTabBar(false)
|
||||||
|
}
|
||||||
snack?.dismiss()
|
snack?.dismiss()
|
||||||
}
|
}
|
||||||
setBottomPadding()
|
setBottomPadding()
|
||||||
|
Loading…
Reference in New Issue
Block a user