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
1 changed files with 1 additions and 0 deletions

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()