src/main/java/de/blau/android/easyedit/turnrestriction/FromElementWithViaNodeActionModeCallback.java
/**
     * Next step in adding the restriction
     * 
     * @param fromWay the original from way
     * @param newFromWay a new from way or null
     */
Next step in adding the restriction

@param fromWay the original from way
@param newFromWay a new from way or null
Next step in adding the restriction @param fromWay the original from way @param newFromWay a new from way or null
private void nextStep(@NonNull Way fromWay, @Nullable Way newFromWay) {
        if (newFromWay != null) {
            Set<OsmElement> fromElements = new HashSet<>();
            fromElements.add(fromWay);
            fromElements.add(newFromWay);
            Snack.barInfo(main, R.string.toast_split_from);
            Set<OsmElement> via = new HashSet<>();
            via.add(viaNode);
            main.startSupportActionMode(new RestartFromElementActionModeCallback(manager, fromElements, via, savedResults));
        } else {
            viaSelected = true;
            main.startSupportActionMode(new ViaElementActionModeCallback(manager, fromWay, viaNode, savedResults));
        }
    }
private void nextStep ( @ NonNull Way fromWay , @ Nullable Way newFromWay ) { if ( newFromWay != null ) { Set < OsmElement > fromElements = new HashSet < > ( ) ; fromElements . add ( fromWay ) ; fromElements . add ( newFromWay ) ; Snack . barInfo ( main , R . string . toast_split_from ) ; Set < OsmElement > via = new HashSet < > ( ) ; via . add ( viaNode ) ; main . startSupportActionMode ( new RestartFromElementActionModeCallback ( manager , fromElements , via , savedResults ) ) ; } else { viaSelected = true ; main . startSupportActionMode ( new ViaElementActionModeCallback ( manager , fromWay , viaNode , savedResults ) ) ; } }
Next step in adding the restriction
Next step in adding the restriction