Skip to content
Snippets Groups Projects
Commit e7e6f012 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Cosmetic changes

parent 4922618e
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
final public boolean mIsSeparator;
public ListItem(String title, String subTitle, MediaWrapper media, boolean isSeparator) {
mMediaList = new ArrayList<MediaWrapper>();
mMediaList = new ArrayList<>();
if (media != null)
mMediaList.add(media);
mTitle = title;
......@@ -108,10 +108,10 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
}
public AudioBrowserListAdapter(Activity context, int itemType) {
mMediaItemMap = new ArrayMap<String, ListItem>();
mSeparatorItemMap = new ArrayMap<String, ListItem>();
mItems = new ArrayList<ListItem>();
mSections = new SparseArray<String>();
mMediaItemMap = new ArrayMap<>();
mSeparatorItemMap = new ArrayMap<>();
mItems = new ArrayList<>();
mSections = new SparseArray<>();
mContext = context;
if (itemType != ITEM_WITHOUT_COVER && itemType != ITEM_WITH_COVER)
throw new IllegalArgumentException();
......@@ -260,8 +260,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
firstSeparator = false;
sections.add(firstCharInString);
}
}
else if (firstSeparator) {
} else if (firstSeparator) {
ListItem item = new ListItem("#", null, null, true);
mItems.add(i, item);
mSections.put(i, "#");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment