Пример #1
0
 @Override
 public void onAddEditCompleted(String city, String state, boolean home_boolean) {
   DatabaseDriver databaseDriver = new DatabaseDriver(this);
   databaseDriver.insertLocation(city, state, home_boolean);
   databaseDriver.close();
   weatherList.updateLocationList();
 }
Пример #2
0
 @Override
 public void onDeleteLocation() {
   FragmentManager fm = getFragmentManager();
   if (fm.getBackStackEntryCount() != 0) {
     fm.popBackStack();
   }
   weatherList.updateLocationList();
 }