From 673ab53a619e8911d474a361e0cd39d42ac7b176 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 20 Mar 2014 05:11:52 -0700 Subject: [PATCH] go back to extending XWListAdapter --- .../src/org/eehouse/android/xw4/StudyList.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java index e7d10825c..b97a2baa4 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/StudyList.java @@ -58,7 +58,7 @@ public class StudyList extends XWListActivity private String[] m_words; private HashSet m_checkeds; private int m_langPosition; - private SLWordsAdapter m_adapter; + private SLWordsAdapter m_adapter; private ListView m_list; private CharSequence m_origTitle; @@ -247,7 +247,7 @@ public class StudyList extends XWListActivity private void makeAdapter() { - m_adapter = new SLWordsAdapter( this, 0, m_words ); + m_adapter = new SLWordsAdapter(); setListAdapter( m_adapter ); } @@ -351,14 +351,11 @@ public class StudyList extends XWListActivity } } - private class SLWordsAdapter extends ArrayAdapter { + private class SLWordsAdapter extends XWListAdapter { - public SLWordsAdapter( Context context, int ignored, String[] strings) { - super( context, ignored, strings ); - } - - public SLWordsAdapter( Context context, int resource ) { - super( context, resource ); + public SLWordsAdapter() + { + super( m_words.length ); } public View getView( int position, View convertView, ViewGroup parent ){