[Android] Video Browser : Fix groups start with "the"

Alexandre Perraud git at videolan.org
Fri Jul 22 14:34:06 CEST 2016


vlc-android | branch: 2.0.x | Alexandre Perraud <4leyx4ndre at gmail.com> | Fri Jul 22 11:59:34 2016 +0200| [d9e7c1d312112ef7aa4429d6295bb2288c11586b] | committer: Jean-Baptiste Kempf

Video Browser : Fix groups start with "the"

(cherry picked from commit ac3bd861a90f2ff0c299c2c78488f0075de8f2bf)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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