Fix addOptionSplit crash
This commit is contained in:
parent
fbc6665d76
commit
18a6aec223
1 changed files with 22 additions and 20 deletions
|
@ -607,7 +607,8 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addOptionSplit(int value, boolean distance, List<GpxDisplayGroup> model) {
|
private void addOptionSplit(int value, boolean distance, @NonNull List<GpxDisplayGroup> model) {
|
||||||
|
if (model.size() > 0) {
|
||||||
if (distance) {
|
if (distance) {
|
||||||
double dvalue = OsmAndFormatter.calculateRoundedDist(value, app);
|
double dvalue = OsmAndFormatter.calculateRoundedDist(value, app);
|
||||||
options.add(OsmAndFormatter.getFormattedDistance((float) dvalue, app));
|
options.add(OsmAndFormatter.getFormattedDistance((float) dvalue, app));
|
||||||
|
@ -631,6 +632,7 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void updateSplitInDatabase() {
|
private void updateSplitInDatabase() {
|
||||||
int splitType = 0;
|
int splitType = 0;
|
||||||
|
|
Loading…
Reference in a new issue