private void handleAutoSelect() { autoSelect = cache.getAutoSelect(); initAutoSelect(); // Waehle automatisch Stundenplan if (!autoSelectDone) { autoSelectDone = true; String autoSelectType = autoSelect.getAutoSelectType(); int autoSelectValue = autoSelect.getAutoSelectValue(); if (autoSelect.isEnabled() && autoSelectType.length() > 0 && autoSelectValue >= 0) { if (autoSelectType.equals(SettingsConstants.AUTOSELECT_TYPE_CLASS)) { if (viewTypeExistsInList(autoSelectValue, classList)) classSpinnerOnItemSelectedListener.fireEventByIdAndDontRemember(autoSelectValue); } else if (autoSelectType.equals(SettingsConstants.AUTOSELECT_TYPE_TEACHER)) { if (viewTypeExistsInList(autoSelectValue, teacherList)) teacherSpinnerOnItemSelectedListener.fireEventByIdAndDontRemember(autoSelectValue); } else if (autoSelectType.equals(SettingsConstants.AUTOSELECT_TYPE_ROOM)) { if (viewTypeExistsInList(autoSelectValue, roomList)) roomSpinnerOnItemSelectedListener.fireEventByIdAndDontRemember(autoSelectValue); } else if (autoSelectType.equals(SettingsConstants.AUTOSELECT_TYPE_SUBJECT)) { if (viewTypeExistsInList(autoSelectValue, subjectList)) subjectSpinnerOnItemSelectedListener.fireEventByIdAndDontRemember(autoSelectValue); } } } }