Skip to content
Snippets Groups Projects
Commit f342c179 authored by Geoffrey Métais's avatar Geoffrey Métais Committed by Nicolas Pomepuy
Browse files

TV: Do not show protocol in files browser

parent befa46a4
No related branches found
No related tags found
1 merge request!364TV: Do not show protocol in files browser
Pipeline #11871 failed with stage
in 2 minutes and 36 seconds
......@@ -27,7 +27,7 @@ import org.videolan.vlc.util.generateResolutionClass
@ExperimentalCoroutinesApi
@ObsoleteCoroutinesApi
class FileTvItemAdapter(private val type: Long, private val eventsHandler: IEventsHandler<MediaLibraryItem>, var itemSize: Int, private val showProtocol: Boolean) : DiffUtilAdapter<AbstractMediaWrapper, MediaTvItemAdapter.AbstractMediaItemViewHolder<MediaBrowserTvItemBinding>>(), FastScroller.SeparatedAdapter, TvItemAdapter {
class FileTvItemAdapter(private val eventsHandler: IEventsHandler<MediaLibraryItem>, var itemSize: Int, private val showProtocol: Boolean) : DiffUtilAdapter<AbstractMediaWrapper, MediaTvItemAdapter.AbstractMediaItemViewHolder<MediaBrowserTvItemBinding>>(), FastScroller.SeparatedAdapter, TvItemAdapter {
override fun submitList(pagedList: Any?) {
if (pagedList is List<*>) {
......
......@@ -59,7 +59,7 @@ class FileBrowserTvFragment : BaseBrowserTvFragment<MediaLibraryItem>(), PathAda
override fun getColumnNumber() = resources.getInteger(R.integer.tv_songs_col_count)
override fun provideAdapter(eventsHandler: IEventsHandler<MediaLibraryItem>, itemSize: Int): TvItemAdapter {
return FileTvItemAdapter(getCategory(), this, itemSize, isRootLevel)
return FileTvItemAdapter(this, itemSize, isRootLevel && getCategory() == TYPE_NETWORK)
}
override fun onCreate(savedInstanceState: Bundle?) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment