Browse Source

clear old subtitle when setting new toolbar

renovate/androidx.fragment-fragment-ktx-1.x
Austin Huang 4 years ago
parent
commit
ec702eae2e
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 1
      app/src/main/java/awais/instagrabber/activities/MainActivity.kt

1
app/src/main/java/awais/instagrabber/activities/MainActivity.kt

@ -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…
Cancel
Save