[Android] TV: Fix headers display in browsing

Geoffrey Métais git at videolan.org
Tue Aug 6 11:33:22 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug  6 11:32:52 2019 +0200| [1d1e3677523b9e8052ec8b70eea0e4289fe8ed1b] | committer: Geoffrey Métais

TV: Fix headers display in browsing

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

 vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
index a2267a72d..215b285b3 100644
--- a/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
+++ b/vlc-android/src/org/videolan/vlc/providers/BrowserProvider.kt
@@ -102,9 +102,10 @@ abstract class BrowserProvider(val context: Context, val dataset: LiveDataset<Me
                 browseRoot()
                 parseSubDirectories()
             }
-            list?.isEmpty() == false -> {
+            !list.isNullOrEmpty() -> {
                 dataset.value = list ?: return
                 prefetchLists.remove(url)
+                computeHeaders(list!!)
                 parseSubDirectories()
             }
             else -> browse(url)



More information about the Android mailing list