[Android] TV: Fix headers display in browsing

Geoffrey Métais git at videolan.org
Thu Aug 8 13:53:45 CEST 2019


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

TV: Fix headers display in browsing

(cherry picked from commit 1d1e3677523b9e8052ec8b70eea0e4289fe8ed1b)

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

 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