private void setPriority() { Spinner priority = getPriorityComponent(); priority.setSelection(task.getInteger(TaskAdapter.PRIORITY, 0), true); }