Fix time
This commit is contained in:
parent
0c7bbdd259
commit
3e42d5001a
3 changed files with 4 additions and 5 deletions
|
@ -519,10 +519,9 @@ public class GPXUtilities {
|
|||
hasElevationData = true;
|
||||
}
|
||||
|
||||
minSpeed = Math.min(speed, minSpeed);
|
||||
if (speed > 0) {
|
||||
totalSpeedSum += speed;
|
||||
// android.util.Log.d(GPXUtilities.class.getSimpleName(), "metricEnd: " + s.metricEnd + " speed: " + speed);
|
||||
minSpeed = Math.min(speed, minSpeed);
|
||||
maxSpeed = Math.max(speed, maxSpeed);
|
||||
speedCount++;
|
||||
}
|
||||
|
|
|
@ -238,10 +238,10 @@ public class TrackActivity extends TabActivity {
|
|||
((TrackSegmentFragment) frag).updateSplitView();
|
||||
}
|
||||
}
|
||||
getSupportFragmentManager().popBackStack();
|
||||
if (isHavingWayPoints() || isHavingRoutePoints()) {
|
||||
getSlidingTabLayout().setVisibility(View.VISIBLE);
|
||||
}
|
||||
getSupportFragmentManager().popBackStack();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -271,10 +271,10 @@ public class TrackActivity extends TabActivity {
|
|||
((TrackSegmentFragment) frag).updateSplitView();
|
||||
}
|
||||
}
|
||||
getSupportFragmentManager().popBackStack();
|
||||
if (isHavingWayPoints() || isHavingRoutePoints()) {
|
||||
getSlidingTabLayout().setVisibility(View.VISIBLE);
|
||||
}
|
||||
getSupportFragmentManager().popBackStack();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1472,12 +1472,12 @@ public class TrackSegmentFragment extends OsmAndListFragment {
|
|||
}
|
||||
|
||||
void openSplitIntervalScreen() {
|
||||
getMyActivity().getSlidingTabLayout().setVisibility(View.GONE);
|
||||
getMyActivity().getSupportFragmentManager()
|
||||
.beginTransaction()
|
||||
.replace(R.id.track_activity_layout, new SplitSegmentFragment())
|
||||
.addToBackStack(SplitSegmentFragment.TAG)
|
||||
.commit();
|
||||
getMyActivity().getSlidingTabLayout().setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
private class SplitTrackAsyncTask extends AsyncTask<Void, Void, Void> {
|
||||
|
|
Loading…
Reference in a new issue