Commit 343c63dc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Rename AudioSongsListAdapter to AudioListAdapter

parent 725c2c41
......@@ -76,7 +76,7 @@ public class AudioBrowserFragment extends SherlockFragment implements ISortable
private AudioServiceController mAudioController;
private MediaLibrary mMediaLibrary;
private AudioSongsListAdapter mSongsAdapter;
private AudioListAdapter mSongsAdapter;
private AudioPlaylistAdapter mArtistsAdapter;
private AudioPlaylistAdapter mAlbumsAdapter;
private AudioPlaylistAdapter mGenresAdapter;
......@@ -106,7 +106,7 @@ public class AudioBrowserFragment extends SherlockFragment implements ISortable
mMediaLibrary = MediaLibrary.getInstance(getActivity());
mMediaLibrary.addUpdateHandler(mHandler);
mSongsAdapter = new AudioSongsListAdapter(getActivity());
mSongsAdapter = new AudioListAdapter(getActivity());
mArtistsAdapter = new AudioPlaylistAdapter(getActivity(), R.plurals.albums, R.plurals.songs);
mAlbumsAdapter = new AudioPlaylistAdapter(getActivity(), R.plurals.songs, R.plurals.songs);
mGenresAdapter = new AudioPlaylistAdapter(getActivity(), R.plurals.albums, R.plurals.songs);
......
......@@ -35,12 +35,12 @@ import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
public class AudioSongsListAdapter extends ArrayAdapter<Media> {
public class AudioListAdapter extends ArrayAdapter<Media> {
private ArrayList<Media> mMediaList;
private int mCurrentIndex;
public AudioSongsListAdapter(Context context) {
public AudioListAdapter(Context context) {
super(context, 0);
mMediaList = new ArrayList<Media>();
mCurrentIndex = -1;
......
......@@ -60,7 +60,7 @@ public class AudioListFragment extends SherlockListFragment {
private MediaLibrary mMediaLibrary;
private TextView mTitle;
private AudioSongsListAdapter mSongsAdapter;
private AudioListAdapter mSongsAdapter;
public final static int SORT_BY_TITLE = 0;
public final static int SORT_BY_LENGTH = 1;
......@@ -79,7 +79,7 @@ public class AudioListFragment extends SherlockListFragment {
mMediaLibrary = MediaLibrary.getInstance(getActivity());
mMediaLibrary.addUpdateHandler(mHandler);
mSongsAdapter = new AudioSongsListAdapter(getActivity());
mSongsAdapter = new AudioListAdapter(getActivity());
setListAdapter(mSongsAdapter);
mHandler.sendEmptyMessageDelayed(MediaLibrary.MEDIA_ITEMS_UPDATED, 250);
......
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