Skip to content
Snippets Groups Projects
Commit dba0b9d9 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix IllegalStateException

parent 7abbbbf0
No related branches found
No related tags found
1 merge request!539Fix IllegalStateException
......@@ -300,6 +300,7 @@ class AudioBrowserFragment : BaseAudioBrowser<AudioBrowserViewModel>(), SwipeRef
}
private fun updateEmptyView() {
if (activity == null) return
val emptyVisibility = getViewModel().providers[currentTab].isEmpty() && getViewModel().providers[currentTab].loading.value == false
emptyView.visibility = if (emptyVisibility) View.VISIBLE else View.GONE
medialibrarySettingsBtn.visibility = if (emptyVisibility) View.VISIBLE else View.GONE
......
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