fix: Fix status bar background in Home tab when Collapsing App Bar mode is enabled
This commit is contained in:
parent
ea5072945e
commit
3ae38cb1de
2 changed files with 2 additions and 7 deletions
|
@ -101,9 +101,6 @@ class HomeFragment :
|
|||
colorButtons()
|
||||
postponeEnterTransition()
|
||||
view.doOnPreDraw { startPostponedEnterTransition() }
|
||||
binding.appBarLayout.statusBarForeground =
|
||||
MaterialShapeDrawable.createWithElevationOverlay(requireContext())
|
||||
binding.toolbar.drawNextToNavbar()
|
||||
view.doOnLayout {
|
||||
adjustPlaylistButtons()
|
||||
}
|
||||
|
@ -178,7 +175,7 @@ class HomeFragment :
|
|||
findNavController().navigate(R.id.action_search, null, navOptions)
|
||||
}
|
||||
val hexColor = String.format("#%06X", 0xFFFFFF and accentColor())
|
||||
val appName = "Retro <span style='color:$hexColor';>Music</span>".parseAsHtml()
|
||||
val appName = "<font color=$hexColor>Retro Music</font>".parseAsHtml()
|
||||
binding.appBarLayout.title = appName
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue