private void search() {
   Long id = null;
   if (selectedEventType != null) id = selectedEventType.getId();
   InTouchServerEvent.search(
       checkSearchAdditionalField(R.id.event_city),
       checkSearchField(),
       id,
       onSearchInTouchCallback());
   ((SwipeRefreshLayout) rootView.findViewById(R.id.events_refresh_layout)).setRefreshing(true);
 }
 private void setType(EventType type) {
   MaterialEditText typeEditText = ((MaterialEditText) rootView.findViewById(R.id.event_type));
   if (type != null) typeEditText.setText(type.getTypeName());
   else typeEditText.setText(null);
   selectedEventType = type;
 }