[Android] TV: Do not show protocol in files browser

Geoffrey Métais git at videolan.org
Tue Dec 17 10:36:14 CET 2019


vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey at videolan.org> | Tue Dec 17 10:16:03 2019 +0100| [61cc782f11f341a471ca7afff20b84415918d3b0] | committer: Geoffrey Métais

TV: Do not show protocol in files browser

(cherry picked from commit f342c179cffbc9eaf9a80a04c024cef5a563c807)

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

 vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt           | 3 ++-
 .../src/org/videolan/vlc/gui/tv/browser/FileBrowserTvFragment.kt       | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt b/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
index dea49a08c..5d609d280 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/FileTvItemAdapter.kt
@@ -27,7 +27,8 @@ import org.videolan.vlc.util.generateResolutionClass
 
 @ExperimentalCoroutinesApi
 @ObsoleteCoroutinesApi
-class FileTvItemAdapter(private val type: Long, private val eventsHandler: IEventsHandler, var itemSize: Int, val showProtocol: Boolean) : DiffUtilAdapter<AbstractMediaWrapper, MediaTvItemAdapter.AbstractMediaItemViewHolder<MediaBrowserTvItemBinding>>(), FastScroller.SeparatedAdapter, TvItemAdapter {
+class FileTvItemAdapter(private val eventsHandler: IEventsHandler, var itemSize: Int, val showProtocol: Boolean) : DiffUtilAdapter<AbstractMediaWrapper, MediaTvItemAdapter.AbstractMediaItemViewHolder<MediaBrowserTvItemBinding>>(), FastScroller.SeparatedAdapter, TvItemAdapter {
+
 
     override fun submitList(pagedList: Any?) {
         if (pagedList is List<*>) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/FileBrowserTvFragment.kt b/vlc-android/src/org/videolan/vlc/gui/tv/browser/FileBrowserTvFragment.kt
index 34c6f7ee9..cc2ac0e85 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/FileBrowserTvFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/FileBrowserTvFragment.kt
@@ -84,7 +84,7 @@ class FileBrowserTvFragment : BaseBrowserTvFragment(), PathAdapterListener {
     }
 
     override fun provideAdapter(eventsHandler: IEventsHandler, itemSize: Int): TvItemAdapter {
-        return FileTvItemAdapter(getCategory(), this, itemSize, isRootLevel)
+        return FileTvItemAdapter(this, itemSize, isRootLevel && getCategory() == TYPE_NETWORK)
     }
 
     override fun onCreate(savedInstanceState: Bundle?) {



More information about the Android mailing list