Dates will now popup

This commit is contained in:
Evan Leybourn 2010-11-21 06:44:22 +11:00
parent 322e4895b6
commit 163751189b

View File

@ -867,7 +867,12 @@ public class BookEditFields extends Activity {
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
pages = 0; pages = 0;
} }
String format = spinnerAdapter.getItem(mFormatText.getSelectedItemPosition()); String format = "";
try {
format = spinnerAdapter.getItem(mFormatText.getSelectedItemPosition());
} catch (IndexOutOfBoundsException e) {
//do nothing - format is hidden
}
String description = mDescriptionText.getText().toString(); String description = mDescriptionText.getText().toString();
String genre = mGenreText.getText().toString(); String genre = mGenreText.getText().toString();