[Android] Fix audio browser empty view

Geoffrey Métais git at videolan.org
Mon Mar 16 10:59:29 CET 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Mar 16 10:09:37 2020 +0100| [f7407d508a6d5c439b37748b164af562242d4596] | committer: Nicolas Pomepuy

Fix audio browser empty view

> https://code.videolan.org/videolan/vlc-android/commit/f7407d508a6d5c439b37748b164af562242d4596
---

 .../vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.kt      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.kt
index 7d850e2e7..a65668415 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/BaseAudioBrowser.kt
@@ -322,7 +322,7 @@ abstract class BaseAudioBrowser<T : MedialibraryViewModel> : MediaBrowserFragmen
     }
 
     protected val empty: Boolean
-        get() = viewModel.isEmpty() && getCurrentAdapter()?.isEmpty == false
+        get() = viewModel.isEmpty() && getCurrentAdapter()?.isEmpty != false
 
     override fun getMultiHelper(): MultiSelectHelper<T>? = getCurrentAdapter()?.multiSelectHelper as? MultiSelectHelper<T>
 }



More information about the Android mailing list