mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 15:41:52 +01:00
Fix floating action bar showing in some intents
This commit is contained in:
parent
f473e46c92
commit
5fe86a98f4
@ -153,7 +153,6 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
binding = MainActivityBinding.inflate(layoutInflater)
|
binding = MainActivityBinding.inflate(layoutInflater)
|
||||||
|
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
setFloatingToolbar(this !is SearchActivity)
|
|
||||||
|
|
||||||
drawerArrow = DrawerArrowDrawable(this)
|
drawerArrow = DrawerArrowDrawable(this)
|
||||||
drawerArrow?.color = getResourceColor(R.attr.actionBarTintColor)
|
drawerArrow?.color = getResourceColor(R.attr.actionBarTintColor)
|
||||||
@ -349,6 +348,7 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
binding.cardToolbar.setIncognitoMode(it)
|
binding.cardToolbar.setIncognitoMode(it)
|
||||||
}
|
}
|
||||||
setExtensionsBadge()
|
setExtensionsBadge()
|
||||||
|
setFloatingToolbar(canShowFloatingToolbar(router.backstack.lastOrNull()?.controller()))
|
||||||
}
|
}
|
||||||
|
|
||||||
open fun setFloatingToolbar(show: Boolean, solidBG: Boolean = false) {
|
open fun setFloatingToolbar(show: Boolean, solidBG: Boolean = false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user