Add action on split button

This commit is contained in:
PavelRatushny 2017-06-29 15:51:08 +03:00
parent 8e41f6d861
commit 9c440c9331

View file

@ -1178,6 +1178,12 @@ public class TrackSegmentFragment extends OsmAndListFragment {
openAnalyzeOnMap(GPXTabItemType.GPX_TAB_ITEM_GENERAL);
}
});
view.findViewById(R.id.split_interval).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
openSplitIntervalScreen();
}
});
break;
case GPX_TAB_ITEM_ALTITUDE:
@ -1222,6 +1228,12 @@ public class TrackSegmentFragment extends OsmAndListFragment {
openAnalyzeOnMap(GPXTabItemType.GPX_TAB_ITEM_ALTITUDE);
}
});
view.findViewById(R.id.split_interval).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
openSplitIntervalScreen();
}
});
break;
case GPX_TAB_ITEM_SPEED:
@ -1265,6 +1277,12 @@ public class TrackSegmentFragment extends OsmAndListFragment {
openAnalyzeOnMap(GPXTabItemType.GPX_TAB_ITEM_SPEED);
}
});
view.findViewById(R.id.split_interval).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
openSplitIntervalScreen();
}
});
break;
}
}
@ -1430,6 +1448,10 @@ public class TrackSegmentFragment extends OsmAndListFragment {
}
}
void openSplitIntervalScreen() {
}
private class SplitTrackAsyncTask extends AsyncTask<Void, Void, Void> {
@Nullable
private final SelectedGpxFile mSelectedGpxFile;