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