Show points tab always
This commit is contained in:
parent
989b9f6fb1
commit
30b003035b
1 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue