Skip to content
Snippets Groups Projects
Commit 1168045e authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Android TV browser: refresh header buttons visibility upon header loading

Fixes #2680
parent 629bf3bd
No related branches found
No related tags found
1 merge request!1524Android TV browser: refresh header buttons visibility upon header loading
Pipeline #261991 passed with stage
in 4 minutes and 21 seconds
......@@ -118,6 +118,9 @@ class FileBrowserTvFragment : BaseBrowserTvFragment<MediaLibraryItem>(), PathAda
viewModel.provider.liveHeaders.observe(viewLifecycleOwner) {
updateHeaders(it)
binding.list.invalidateItemDecorations()
animationDelegate.setVisibility(binding.imageButtonHeader, if (viewModel.provider.headers.isEmpty) View.GONE else View.VISIBLE)
animationDelegate.setVisibility(binding.headerButton, if (viewModel.provider.headers.isEmpty) View.GONE else View.VISIBLE)
animationDelegate.setVisibility(binding.headerDescription, if (viewModel.provider.headers.isEmpty) View.GONE else View.VISIBLE)
}
(viewModel.provider as BrowserProvider).loading.observe(viewLifecycleOwner) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment