src/main/java/de/blau/android/easyedit/route/RouteSegmentActionModeCallback.java
/**
     * Split the next segment
     * 
     * @param nextSegment the next segment
     * @param commonNode the node at which it has to be split
     * @param currentSegment the current segment
     * @param newCurrentSegment a potential new current segment created by splitting
     */
Split the next segment

@param nextSegment the next segment
@param commonNode the node at which it has to be split
@param currentSegment the current segment
@param newCurrentSegment a potential new current segment created by splitting
Split the next segment @param nextSegment the next segment @param commonNode the node at which it has to be split @param currentSegment the current segment @param newCurrentSegment a potential new current segment created by splitting
private void splitNext(@NonNull Way nextSegment, @NonNull Node commonNode, @NonNull final Way currentSegment, @Nullable final Way newCurrentSegment) {
        splitSafe(Util.wrapInList(nextSegment), () -> {
            try {
                List<Result> result = logic.performSplit(main, nextSegment, commonNode);
                Way newNextSegment = newWayFromSplitResult(result);
                saveSplitResult(nextSegment, result);
                nextStep(currentSegment, nextSegment, newCurrentSegment, newNextSegment);
            } catch (OsmIllegalOperationException | StorageException ex) {
                manager.finish();
            }
        });
    }
private void splitNext ( @ NonNull Way nextSegment , @ NonNull Node commonNode , @ NonNull final Way currentSegment , @ Nullable final Way newCurrentSegment ) { splitSafe ( Util . wrapInList ( nextSegment ) , ( ) -> { try { List < Result > result = logic . performSplit ( main , nextSegment , commonNode ) ; Way newNextSegment = newWayFromSplitResult ( result ) ; saveSplitResult ( nextSegment , result ) ; nextStep ( currentSegment , nextSegment , newCurrentSegment , newNextSegment ) ; } catch ( OsmIllegalOperationException | StorageException ex ) { manager . finish ( ) ; } } ) ; }
Split the next segment
Split the next segment
// toast has already been displayed