go back to extending XWListAdapter

This commit is contained in:
Eric House 2014-03-20 05:11:52 -07:00
parent 3717035150
commit 673ab53a61

View file

@ -58,7 +58,7 @@ public class StudyList extends XWListActivity
private String[] m_words; private String[] m_words;
private HashSet<Integer> m_checkeds; private HashSet<Integer> m_checkeds;
private int m_langPosition; private int m_langPosition;
private SLWordsAdapter<String> m_adapter; private SLWordsAdapter m_adapter;
private ListView m_list; private ListView m_list;
private CharSequence m_origTitle; private CharSequence m_origTitle;
@ -247,7 +247,7 @@ public class StudyList extends XWListActivity
private void makeAdapter() private void makeAdapter()
{ {
m_adapter = new SLWordsAdapter<String>( this, 0, m_words ); m_adapter = new SLWordsAdapter();
setListAdapter( m_adapter ); setListAdapter( m_adapter );
} }
@ -351,14 +351,11 @@ public class StudyList extends XWListActivity
} }
} }
private class SLWordsAdapter<String> extends ArrayAdapter<String> { private class SLWordsAdapter extends XWListAdapter {
public SLWordsAdapter( Context context, int ignored, String[] strings) { public SLWordsAdapter()
super( context, ignored, strings ); {
} super( m_words.length );
public SLWordsAdapter( Context context, int resource ) {
super( context, resource );
} }
public View getView( int position, View convertView, ViewGroup parent ){ public View getView( int position, View convertView, ViewGroup parent ){