mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix floating toolbar showing on some screens while bottom sheet is collapsing
This commit is contained in:
parent
090e9ee005
commit
f6f236e1d9
2 changed files with 9 additions and 5 deletions
|
@ -333,9 +333,11 @@ class RecentsController(bundle: Bundle? = null) :
|
|||
}
|
||||
|
||||
fun updateTitleAndMenu() {
|
||||
if (router.backstack.lastOrNull()?.controller == this) {
|
||||
(activity as? MainActivity)?.setFloatingToolbar(!showingDownloads, true)
|
||||
setTitle()
|
||||
}
|
||||
}
|
||||
|
||||
private fun setBottomPadding() {
|
||||
val bottomBar = activityBinding?.bottomNav ?: return
|
||||
|
|
|
@ -229,10 +229,12 @@ class BrowseController :
|
|||
}
|
||||
|
||||
fun updateTitleAndMenu() {
|
||||
if (router.backstack.lastOrNull()?.controller == this) {
|
||||
(activity as? MainActivity)?.setFloatingToolbar(!showingExtensions)
|
||||
activity?.invalidateOptionsMenu()
|
||||
setTitle()
|
||||
}
|
||||
}
|
||||
|
||||
fun setBottomSheetTabs(progress: Float) {
|
||||
val bottomSheet = binding.bottomSheet.root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue