Fixed Genres list

This commit is contained in:
Nite 2021-01-12 16:51:31 +01:00 committed by Óscar García Amor
parent 70f86441d1
commit 3749f30691
No known key found for this signature in database
GPG Key ID: E18B2370D3D566EE
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
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);
@ -81,7 +81,7 @@ public class ArtistAdapter extends ArrayAdapter<Artist> implements SectionIndexe
) {
View rowView = convertView;
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());

View File

@ -48,7 +48,7 @@ public class GenreAdapter extends ArrayAdapter<Genre> implements SectionIndexer
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);
@ -75,7 +75,7 @@ public class GenreAdapter extends ArrayAdapter<Genre> implements SectionIndexer
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
View rowView = convertView;
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());