mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-07 15:28:40 +01:00
commit
20de65d1fd
@ -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());
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user