Commit aad4bf51 authored by Geoffrey Métais's avatar Geoffrey Métais

Revert "Inside a video group, display the title without the group name"

This reverts commit 71e6ca9c.
parent c4980753
......@@ -74,7 +74,6 @@ import org.videolan.vlc.util.Util;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
public class VideoGridFragment extends SortableFragment<VideoListAdapter> implements MediaUpdatedCb, SwipeRefreshLayout.OnRefreshListener, MediaAddedCb, Filterable, IEventsHandler {
......@@ -366,11 +365,8 @@ public class VideoGridFragment extends SortableFragment<VideoListAdapter> implem
if (mGroup != null) {
for (MediaWrapper item : itemList) {
String title = item.getTitle().substring(item.getTitle().toLowerCase().startsWith("the") ? 4 : 0);
if (title.toLowerCase().startsWith(mGroup.toLowerCase())) {
//Display title without the group name
item.setDisplayTitle(title.replaceFirst(Pattern.quote(mGroup), "\u2026"));
if (mGroup == null || title.toLowerCase().startsWith(mGroup.toLowerCase()))
displayList.add(item);
}
}
} else {
for (MediaGroup item : MediaGroup.group(itemList))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment