diff --git a/OsmAnd/src/net/osmand/plus/GPXUtilities.java b/OsmAnd/src/net/osmand/plus/GPXUtilities.java index 3020411c30..be8990d1a3 100644 --- a/OsmAnd/src/net/osmand/plus/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/plus/GPXUtilities.java @@ -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++; } diff --git a/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java b/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java index 6cd2b107a5..b0286a90e6 100644 --- a/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java @@ -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; } } diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java index e3f8fdb18d..bf4587fc83 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java @@ -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 {