Commit cf7fe169 authored by Sébastien Toque's avatar Sébastien Toque

remove useless argument in ArrayAdapter's constructor

parent 282a1950
......@@ -63,7 +63,7 @@ public class BrowserActivity extends ListActivity {
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.browser);
super.onCreate(savedInstanceState);
mAdapter = new BrowserAdapter(this, R.layout.browser_item);
mAdapter = new BrowserAdapter(this);
setListAdapter(mAdapter);
//get the root from the settings
......
......@@ -42,8 +42,8 @@ public class BrowserAdapter extends ArrayAdapter<File>
implements Comparator<File> {
public final static String TAG = "VLC/BrowserAdapter";
public BrowserAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
public BrowserAdapter(Context context) {
super(context, 0);
}
@Override
......
......@@ -67,7 +67,7 @@ public class SearchActivity extends ListActivity {
setContentView(R.layout.search);
// TODO: create layout
mResultAdapter = new SearchResultAdapter(this, android.R.layout.simple_list_item_1);
mResultAdapter = new SearchResultAdapter(this);
mSearchText = (EditText) findViewById(R.id.search_text);
mSearchText.setOnEditorActionListener(searchTextListener);
......
......@@ -34,8 +34,8 @@ import android.widget.TextView;
public class SearchResultAdapter extends ArrayAdapter<Media>
implements Comparator<Media> {
public SearchResultAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
public SearchResultAdapter(Context context) {
super(context, 0);
}
@Override
......
......@@ -97,7 +97,7 @@ public class AudioBrowserActivity extends Activity implements ISortable {
mMediaLibrary = MediaLibrary.getInstance(this);
mMediaLibrary.addUpdateHandler(mHandler);
mSongsAdapter = new AudioSongsListAdapter(this, R.layout.audio_browser_item);
mSongsAdapter = new AudioSongsListAdapter(this);
mArtistsAdapter = new AudioPlaylistAdapter(this, R.plurals.albums, R.plurals.songs);
mAlbumsAdapter = new AudioPlaylistAdapter(this, R.plurals.songs, R.plurals.songs);
mGenresAdapter = new AudioPlaylistAdapter(this, R.plurals.albums, R.plurals.songs);
......
......@@ -74,7 +74,7 @@ public class AudioListActivity extends ListActivity {
mTitle = (TextView) findViewById(R.id.title);
mSongsAdapter = new AudioSongsListAdapter(this, R.layout.audio_browser_item);
mSongsAdapter = new AudioSongsListAdapter(this);
setListAdapter(mSongsAdapter);
getListView().setOnCreateContextMenuListener(contextMenuListener);
......
......@@ -39,8 +39,8 @@ public class AudioSongsListAdapter extends ArrayAdapter<Media> {
private ArrayList<Media> mMediaList;
private int mCurrentIndex;
public AudioSongsListAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
public AudioSongsListAdapter(Context context) {
super(context, 0);
mMediaList = new ArrayList<Media>();
mCurrentIndex = -1;
}
......
......@@ -71,7 +71,7 @@ public class MediaInfoActivity extends ListActivity {
mPlayButton = (ImageButton) findViewById(R.id.play);
mAdapter = new MediaInfoAdapter(MediaInfoActivity.this, R.layout.audio_browser_playlist);
mAdapter = new MediaInfoAdapter(MediaInfoActivity.this);
setListAdapter(mAdapter);
new Thread(mLoadImage).start();
......
......@@ -33,8 +33,8 @@ import android.widget.TextView;
public class MediaInfoAdapter extends ArrayAdapter<TrackInfo> {
public MediaInfoAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
public MediaInfoAdapter(Context context) {
super(context, 0);
}
@Override
......
......@@ -64,7 +64,7 @@ public class VideoListActivity extends ListActivity implements ISortable {
super.onCreate(savedInstanceState);
setContentView(R.layout.video_list);
mVideoAdapter = new VideoListAdapter(this, R.layout.video_list_item);
mVideoAdapter = new VideoListAdapter(this);
mNoFileLayout = (LinearLayout) findViewById(R.id.video_list_empty_nofile);
mLoadFileLayout = (LinearLayout) findViewById(R.id.video_list_empty_loadfile);
......
......@@ -48,8 +48,8 @@ public class VideoListAdapter extends ArrayAdapter<Media>
private int mSortBy = SORT_BY_TITLE;
private String mLastMRL;
public VideoListAdapter(Context context, int textViewResourceId) {
super(context, textViewResourceId);
public VideoListAdapter(Context context) {
super(context, 0);
}
public final static String TAG = "VLC/MediaLibraryAdapter";
......
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