1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-14 10:47:30 +00:00

clear old subtitle when setting new toolbar

This commit is contained in:
Austin Huang 2021-07-12 17:59:06 -04:00
parent 29b317e7a8
commit ec702eae2e
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -652,6 +652,7 @@ class MainActivity : BaseLanguageActivity() {
fun getToolbar() = synchronized(toolbarLock) { this.toolbar }
fun setToolbar(toolbar: Toolbar, owner: Fragment) = synchronized(toolbarLock) {
supportActionBar?.subtitle = null
toolbarOwner = owner
binding.appBarLayout.visibility = View.GONE
removeScrollingBehaviour()