@Override public void CitySaved(City city) { if (city != null) { if (city.getName() != null) { menuFragment.addCity(city); dialogFragment.dismiss(); } } else { Toast.makeText( this.getApplicationContext(), "This city already is in your Favourites", Toast.LENGTH_SHORT) .show(); } }
@Override public void foundCitiesDisplay(List<City> cities) { dialogFragment.fillListCities(cities); isSearchRunning = false; }
@Override public void onClickAddCity() { dialogFragment = new AddCityFragmentDialog(); dialogFragment.show(getSupportFragmentManager().beginTransaction(), null); }