Fixed lyrics toolbar button not working
This commit is contained in:
parent
61074305ec
commit
5e16b79d23
1 changed files with 8 additions and 2 deletions
|
@ -99,11 +99,10 @@ class LyricsFragment : AbsMusicServiceFragment(R.layout.fragment_lyrics) {
|
||||||
|
|
||||||
setupWakelock()
|
setupWakelock()
|
||||||
|
|
||||||
binding.toolbar.setBackgroundColor(surfaceColor())
|
|
||||||
binding.tabLyrics.setBackgroundColor(surfaceColor())
|
binding.tabLyrics.setBackgroundColor(surfaceColor())
|
||||||
binding.container.setBackgroundColor(surfaceColor())
|
binding.container.setBackgroundColor(surfaceColor())
|
||||||
ToolbarContentTintHelper.colorBackButton(binding.toolbar)
|
|
||||||
setupViews()
|
setupViews()
|
||||||
|
setupToolbar()
|
||||||
updateTitleSong()
|
updateTitleSong()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,6 +121,13 @@ class LyricsFragment : AbsMusicServiceFragment(R.layout.fragment_lyrics) {
|
||||||
binding.tabLyrics.setTabTextColors(textColorSecondary(), accentColor())
|
binding.tabLyrics.setTabTextColors(textColorSecondary(), accentColor())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun setupToolbar() {
|
||||||
|
binding.toolbar.setBackgroundColor(surfaceColor())
|
||||||
|
ToolbarContentTintHelper.colorBackButton(binding.toolbar)
|
||||||
|
binding.toolbar.setNavigationOnClickListener {
|
||||||
|
findNavController().navigateUp()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onPlayingMetaChanged() {
|
override fun onPlayingMetaChanged() {
|
||||||
super.onPlayingMetaChanged()
|
super.onPlayingMetaChanged()
|
||||||
|
|
Loading…
Reference in a new issue