[Android] Video Browser : Fix groups start with "the"
Alexandre Perraud
git at videolan.org
Fri Jul 22 12:03:02 CEST 2016
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Jul 22 11:59:34 2016 +0200| [ac3bd861a90f2ff0c299c2c78488f0075de8f2bf] | committer: Alexandre Perraud
Video Browser : Fix groups start with "the"
> https://code.videolan.org/videolan/vlc-android/commit/ac3bd861a90f2ff0c299c2c78488f0075de8f2bf
---
vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
index 57b1dd5..8eedbf3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -258,7 +258,8 @@ public class VideoListAdapter extends RecyclerView.Adapter<VideoListAdapter.View
return;
if (media instanceof MediaGroup) {
MainActivity activity = (MainActivity) mFragment.getActivity();
- activity.showSecondaryFragment(SecondaryActivity.VIDEO_GROUP_LIST, media.getTitle());
+ String title = media.getTitle().substring(media.getTitle().toLowerCase().startsWith("the") ? 4 : 0);
+ activity.showSecondaryFragment(SecondaryActivity.VIDEO_GROUP_LIST, title);
} else {
media.removeFlags(MediaWrapper.MEDIA_FORCE_AUDIO);
VideoPlayerActivity.start(v.getContext(), media.getUri(), media.getTitle());
More information about the Android
mailing list