Commits

Juha Kuitunen  committed 74afb52

changed issue filter logic

  • Participants
  • Parent commits 009e460

Comments (0)

Files changed (1)

File src/com/saibotd/bitbeaker/IssuesActivity.java

 
 	private class filterListener implements OnItemSelectedListener {
 		public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
-			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();
+			else {
+				if (pos == 0) filter = "";
+				else if (pos == 1) filter = "?status=new&status=open";
+				else filter = "?status="+URLEncoder.encode(parent.getItemAtPosition(pos).toString());
+				onResume();
+			}
 		}
 		public void onNothingSelected(AdapterView<?> parent) {
 			// Do nothing.