Fix joined segments drawing for disabled track
This commit is contained in:
parent
127645eb44
commit
cf72584aba
2 changed files with 5 additions and 1 deletions
|
@ -250,7 +250,7 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener {
|
|||
private void refreshTrackBitmap() {
|
||||
TrackBitmapDrawer trackDrawer = getTrackBitmapDrawer();
|
||||
if (trackDrawer != null) {
|
||||
getTrackBitmapDrawer().refreshTrackBitmap();
|
||||
trackDrawer.refreshTrackBitmap();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -210,6 +210,10 @@ public class TrackBitmapDrawer {
|
|||
sf = app.getSelectedGpxHelper().getSelectedFileByPath(gpxFile.path);
|
||||
if (sf == null) {
|
||||
sf = new GpxSelectionHelper.SelectedGpxFile();
|
||||
GpxDataItem gpxDataItem = getGpxDataItem();
|
||||
if (gpxDataItem != null) {
|
||||
sf.setJoinSegments(gpxDataItem.isJoinSegments());
|
||||
}
|
||||
}
|
||||
sf.setGpxFile(gpxFile, app);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue