mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 18:57:30 +00:00
clear old subtitle when setting new toolbar
This commit is contained in:
parent
29b317e7a8
commit
ec702eae2e
@ -652,6 +652,7 @@ class MainActivity : BaseLanguageActivity() {
|
|||||||
fun getToolbar() = synchronized(toolbarLock) { this.toolbar }
|
fun getToolbar() = synchronized(toolbarLock) { this.toolbar }
|
||||||
|
|
||||||
fun setToolbar(toolbar: Toolbar, owner: Fragment) = synchronized(toolbarLock) {
|
fun setToolbar(toolbar: Toolbar, owner: Fragment) = synchronized(toolbarLock) {
|
||||||
|
supportActionBar?.subtitle = null
|
||||||
toolbarOwner = owner
|
toolbarOwner = owner
|
||||||
binding.appBarLayout.visibility = View.GONE
|
binding.appBarLayout.visibility = View.GONE
|
||||||
removeScrollingBehaviour()
|
removeScrollingBehaviour()
|
||||||
|
Loading…
Reference in New Issue
Block a user