mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
go back to extending XWListAdapter
This commit is contained in:
parent
3717035150
commit
673ab53a61
1 changed files with 6 additions and 9 deletions
|
@ -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 ){
|
||||||
|
|
Loading…
Reference in a new issue