Esempio n. 1
0
 @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();
   }
 }
Esempio n. 2
0
 @Override
 public void foundCitiesDisplay(List<City> cities) {
   dialogFragment.fillListCities(cities);
   isSearchRunning = false;
 }
Esempio n. 3
0
 @Override
 public void onClickAddCity() {
   dialogFragment = new AddCityFragmentDialog();
   dialogFragment.show(getSupportFragmentManager().beginTransaction(), null);
 }