Fixed Genres list
This commit is contained in:
parent
70f86441d1
commit
3749f30691
|
@ -49,7 +49,7 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
|
||||||
|
|
||||||
public ArtistAdapter(Context context, List<Artist> artists)
|
public ArtistAdapter(Context context, List<Artist> artists)
|
||||||
{
|
{
|
||||||
super(context, R.layout.artist_list_item, artists);
|
super(context, R.layout.generic_text_list_item, artists);
|
||||||
|
|
||||||
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
|
||||||
) {
|
) {
|
||||||
View rowView = convertView;
|
View rowView = convertView;
|
||||||
if (rowView == null) {
|
if (rowView == null) {
|
||||||
rowView = layoutInflater.inflate(R.layout.artist_search_list_item, parent, false);
|
rowView = layoutInflater.inflate(R.layout.generic_text_list_item, parent, false);
|
||||||
}
|
}
|
||||||
((TextView) rowView).setText(getItem(position).getName());
|
((TextView) rowView).setText(getItem(position).getName());
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class GenreAdapter extends ArrayAdapter<Genre> implements SectionIndexer
|
||||||
|
|
||||||
public GenreAdapter(Context context, List<Genre> genres)
|
public GenreAdapter(Context context, List<Genre> genres)
|
||||||
{
|
{
|
||||||
super(context, R.layout.artist_list_item, genres);
|
super(context, R.layout.generic_text_list_item, genres);
|
||||||
|
|
||||||
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ public class GenreAdapter extends ArrayAdapter<Genre> implements SectionIndexer
|
||||||
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
||||||
View rowView = convertView;
|
View rowView = convertView;
|
||||||
if (rowView == null) {
|
if (rowView == null) {
|
||||||
rowView = layoutInflater.inflate(R.layout.artist_list_item, parent, false);
|
rowView = layoutInflater.inflate(R.layout.generic_text_list_item, parent, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
((TextView) rowView).setText(getItem(position).getName());
|
((TextView) rowView).setText(getItem(position).getName());
|
||||||
|
|
Loading…
Reference in New Issue