Fixed lyrics toolbar button not working

This commit is contained in:
Prathamesh More 2021-09-27 21:08:04 +05:30
parent 61074305ec
commit 5e16b79d23

View file

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