[Android] TV: Fix protocole displayed in favorites folders

Geoffrey Métais git at videolan.org
Mon Nov 4 17:35:37 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov  4 17:34:53 2019 +0100| [e28a802a5920a104f374e42e66c65a8c0b835aa3] | committer: Geoffrey Métais

TV: Fix protocole displayed in favorites folders

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.kt b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.kt
index cf49828d9..b1078b712 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.kt
@@ -71,7 +71,7 @@ class VerticalGridActivity : BaseTvActivity(), BrowserActivityInterface {
                 val item = if (uri == null) null else MLServiceLocator.getAbstractMediaWrapper(uri)
                 if (item != null && intent.hasExtra(FAVORITE_TITLE)) item.title = intent.getStringExtra(FAVORITE_TITLE)
 
-                fragment = FileBrowserTvFragment.newInstance(TYPE_NETWORK, item, true)
+                fragment = FileBrowserTvFragment.newInstance(TYPE_NETWORK, item, item === null)
             } else if (type == HEADER_DIRECTORIES) {
                 fragment = FileBrowserTvFragment.newInstance(TYPE_FILE, intent.data?.let { MLServiceLocator.getAbstractMediaWrapper(it) }, true)
             } else {



More information about the Android mailing list