[Android] TV: Fix protocole displayed in favorites folders

Geoffrey Métais git at videolan.org
Wed Nov 6 10:13:06 CET 2019


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

TV: Fix protocole displayed in favorites folders

(cherry picked from commit e28a802a5920a104f374e42e66c65a8c0b835aa3)

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

 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