@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.selectscreen_menu_search: onSearchRequested(); return true; case R.id.selectscreen_menu_autoselect: autoselectDialog.show(); return true; default: return super.onOptionsItemSelected(item); } }
private void initAutoSelect() { autoselectDialog = new AutoselectDialog(this, classList, teacherList, roomList, subjectList); autoselectDialog.setAutoSelectSet(autoSelect); }