[Android] Rename AudioSongsListAdapter to AudioListAdapter
Jean-Baptiste Kempf
git at videolan.org
Fri Jun 22 15:05:50 CEST 2012
android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 22 17:05:15 2012 +0200| [343c63dc9bd33e688d9518521b5ff534f5c33eef] | committer: Jean-Baptiste Kempf
Rename AudioSongsListAdapter to AudioListAdapter
> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=343c63dc9bd33e688d9518521b5ff534f5c33eef
---
.../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 4 ++--
.../audio/{AudioSongsListAdapter.java => AudioListAdapter.java} | 4 ++--
vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index fe2e48d..c9de90d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -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);
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioSongsListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListAdapter.java
similarity index 96%
rename from vlc-android/src/org/videolan/vlc/gui/audio/AudioSongsListAdapter.java
rename to vlc-android/src/org/videolan/vlc/gui/audio/AudioListAdapter.java
index 7a58d60..06faff1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioSongsListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListAdapter.java
@@ -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;
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
index f1d2199..9dc92e2 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioListFragment.java
@@ -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);
More information about the Android
mailing list