Search in sources :

Example 1 with SurveyManager

use of org.hwyl.sexytopo.control.SurveyManager in project sexytopo by richsmith.

the class ManualEntry method addStation.

public static void addStation(final TableActivity tableActivity, final Survey survey) {
    AlertDialog dialog = createDialog(R.layout.leg_edit_dialog, tableActivity, (leg, ignore) -> {
        SurveyUpdater.updateWithNewStation(survey, leg);
        SurveyManager manager = tableActivity.getSurveyManager();
        manager.broadcastSurveyUpdated();
        manager.broadcastNewStationCreated();
        tableActivity.syncTableWithSurvey();
    });
    dialog.setTitle(R.string.manual_add_station_title);
}
Also used : AlertDialog(android.app.AlertDialog) SurveyManager(org.hwyl.sexytopo.control.SurveyManager)

Aggregations

AlertDialog (android.app.AlertDialog)1 SurveyManager (org.hwyl.sexytopo.control.SurveyManager)1