[Android] Fix filename not shown in videos
Geoffrey Métais
git at videolan.org
Tue Oct 1 14:44:35 CEST 2019
vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 26 15:24:02 2019 +0200| [5c7e91106f09ca3cc2e9c6eaa457ae508312c00f] | committer: Geoffrey Métais
Fix filename not shown in videos
(cherry picked from commit 969f4cfc6f0b772a5891f88877a857909c0a33aa)
> https://code.videolan.org/videolan/vlc-android/commit/5c7e91106f09ca3cc2e9c6eaa457ae508312c00f
---
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 70d5c3ca0..82bd7aa8e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoGridFragment.kt
@@ -109,7 +109,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 ->
@@ -199,7 +198,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