Commits

Juha Kuitunen committed 03f3d50

set default options for spinners in NewIssueActivity

Comments (0)

Files changed (1)

src/com/saibotd/bitbeaker/NewIssueActivity.java

 		ArrayAdapter<String> typeSpinnerArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, typeOptions);
 		typeSpinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 		typeSpinner.setAdapter(typeSpinnerArrayAdapter);
+		typeSpinner.setSelection(0);// 'bug' in typeOptions
 
 		prioritySpinner = (Spinner) findViewById(R.id.new_issue_priority);
 		String[] priorityOptions = {
 		ArrayAdapter<String> prioritySpinnerArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, priorityOptions);
 		prioritySpinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 		prioritySpinner.setAdapter(prioritySpinnerArrayAdapter);
+		prioritySpinner.setSelection(2);// 'major' in priorityOptions
 
 		statusSpinner = (Spinner) findViewById(R.id.new_issue_status);
 		String[] statusOptions = {
 		ArrayAdapter<String> statusSpinnerArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, statusOptions);
 		statusSpinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 		statusSpinner.setAdapter(statusSpinnerArrayAdapter);
+		statusSpinner.setSelection(0);// 'new' in statusOptions
 	}
 
 	@Override