Commits

Juha Kuitunen committed 08b82d1

filtering issues is working now

Comments (0)

Files changed (1)

src/com/saibotd/bitbeaker/IssuesActivity.java

 
 	private class filterListener implements OnItemSelectedListener {
 		public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
-			String tmp = parent.getItemAtPosition(pos).toString();
-			if (tmp.equals("Show all")) filter = "";
-			else if (tmp.equals("new &amp; open")) filter = "?status=new&status=open";
-			else filter = "?status="+URLEncoder.encode(tmp);
+			if (pos == 0) filter = "";
+			else if (pos == 1) filter = "?status=new&status=open";
+			else filter = "?status="+URLEncoder.encode(parent.getItemAtPosition(pos).toString());
 
 			if (spinnerFirstTime) spinnerFirstTime = false;
 			else onResume();