Show points tab always

This commit is contained in:
Alexey Kulish 2018-05-16 15:10:27 +03:00
parent 989b9f6fb1
commit 30b003035b

View file

@ -397,11 +397,9 @@ public class TrackActivity extends TabActivity {
OsmandFragmentPagerAdapter pagerAdapter = (OsmandFragmentPagerAdapter) viewPager.getAdapter();
if (pagerAdapter != null && pagerAdapter.getCount() == 0) {
pagerAdapter.addTab(getTabIndicator(R.string.gpx_track, TrackSegmentFragment.class));
if (hasWayPoints() || hasRoutePoints()) {
pagerAdapter.addTab(getTabIndicator(R.string.points, TrackPointFragment.class));
if (openPointsTab || !hasTrackPoints()) {
viewPager.setCurrentItem(1, false);
}
pagerAdapter.addTab(getTabIndicator(R.string.points, TrackPointFragment.class));
if (openPointsTab || !hasTrackPoints()) {
viewPager.setCurrentItem(1, false);
}
if (pagerAdapter.getCount() > 1) {