diff --git a/HISTORY.md b/HISTORY.md index 10c1d07b..228a8556 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +## 0.4.3 (2011-06-15) + +* Minor fixes +* Improved tests GUI + ## 0.4.2 (2011-06-15) * Now not answered questions score as 0 diff --git a/SWADroid/AndroidManifest.xml b/SWADroid/AndroidManifest.xml index f60f2491..d4d80285 100644 --- a/SWADroid/AndroidManifest.xml +++ b/SWADroid/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:installLocation="auto" android:versionName="0.4.3" android:versionCode="20"> { public View getView(int position, View convertView, ViewGroup parent) { CheckedTextView tt; final ListView lv = (ListView) parent; + final int rbPosition = position; TestAnswer a = items.get(position); if (convertView == null) { @@ -83,18 +84,14 @@ public class CheckedAnswersArrayAdapter extends ArrayAdapter { tt.setOnClickListener(new OnClickListener() { public void onClick(View v) { CheckedTextView rb = (CheckedTextView) v; - int childCount = lv.getChildCount(); - int itemPos = 0; + int childCount = lv.getCount(); boolean checked = rb.isChecked(); for(int i=0; i(); //If "All tags" item checked, add the whole list to the list of selected tags - CheckedTextView allChk = (CheckedTextView) checkBoxesList.getChildAt(0); - if(allChk.isChecked()) { + if(checkedItems.get(0, false)) { tagsList.add(new TestTag(0, 0, "all", 0)); //If "All tags" item not checked, add the selected items to the list of selected tags } else { for(int i=0; i(); /* * If "All tags" item checked, add the whole list to the list of selected answer types, * else, add the selected items to the list of selected answer types */ - CheckedTextView allChk = (CheckedTextView) checkBoxesList.getChildAt(0); - if(allChk.isChecked()) { + if(checkedItems.get(0, false)) { answerTypesList.add("all"); } else { for(int i=1; i