[Android] Fix filename not shown in videos

Geoffrey Métais git at videolan.org
Tue Oct 1 14:33:43 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 26 15:24:02 2019 +0200| [969f4cfc6f0b772a5891f88877a857909c0a33aa] | committer: Geoffrey Métais

Fix filename not shown in videos

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
index 072ca5c56..5e33986c1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -107,7 +107,6 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
             else arguments?.getParcelable(KEY_FOLDER)
             val group = if (savedInstanceState != null ) savedInstanceState.getParcelable<AbstractVideoGroup>(KEY_GROUP)
             else arguments?.getParcelable(KEY_GROUP)
-            Log.d(TAG, "group ${group?.title}")
             viewModel = getViewModel(folder, group)
             viewModel.provider.pagedList.observe(this, this)
             viewModel.provider.loading.observe(this, Observer { loading ->
@@ -197,7 +196,7 @@ class VideoGridFragment : MediaBrowserFragment<VideosViewModel>(), SwipeRefreshL
     }
 
     override fun onChanged(list: PagedList<AbstractMediaWrapper>?) {
-        videoListAdapter.showFilename(viewModel.sort == AbstractMedialibrary.SORT_FILENAME)
+        videoListAdapter.showFilename(viewModel.provider.sort == AbstractMedialibrary.SORT_FILENAME)
         if (list != null) videoListAdapter.submitList(list)
     }
 



More information about the Android mailing list