mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 05:59:17 +01:00
Fix floating toolbar showing on some screens while bottom sheet is collapsing
This commit is contained in:
parent
090e9ee005
commit
f6f236e1d9
@ -333,9 +333,11 @@ class RecentsController(bundle: Bundle? = null) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun updateTitleAndMenu() {
|
fun updateTitleAndMenu() {
|
||||||
|
if (router.backstack.lastOrNull()?.controller == this) {
|
||||||
(activity as? MainActivity)?.setFloatingToolbar(!showingDownloads, true)
|
(activity as? MainActivity)?.setFloatingToolbar(!showingDownloads, true)
|
||||||
setTitle()
|
setTitle()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun setBottomPadding() {
|
private fun setBottomPadding() {
|
||||||
val bottomBar = activityBinding?.bottomNav ?: return
|
val bottomBar = activityBinding?.bottomNav ?: return
|
||||||
|
@ -229,10 +229,12 @@ class BrowseController :
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun updateTitleAndMenu() {
|
fun updateTitleAndMenu() {
|
||||||
|
if (router.backstack.lastOrNull()?.controller == this) {
|
||||||
(activity as? MainActivity)?.setFloatingToolbar(!showingExtensions)
|
(activity as? MainActivity)?.setFloatingToolbar(!showingExtensions)
|
||||||
activity?.invalidateOptionsMenu()
|
activity?.invalidateOptionsMenu()
|
||||||
setTitle()
|
setTitle()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun setBottomSheetTabs(progress: Float) {
|
fun setBottomSheetTabs(progress: Float) {
|
||||||
val bottomSheet = binding.bottomSheet.root
|
val bottomSheet = binding.bottomSheet.root
|
||||||
|
Loading…
Reference in New Issue
Block a user