From cbedf9c58a0d82510585e3f569117efec360b017 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Tue, 25 Jul 2017 17:23:35 +0300 Subject: [PATCH] Fix NPE --- OsmAnd/src/net/osmand/plus/activities/TrackActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java b/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java index b0286a90e6..bf918c96bb 100644 --- a/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/TrackActivity.java @@ -76,6 +76,12 @@ public class TrackActivity extends TabActivity { actionBar.setElevation(0); } setContentView(R.layout.tab_content); + } + + @Override + protected void onStart() { + super.onStart(); + stopped = false; slidingTabLayout = (PagerSlidingTabStrip) findViewById(R.id.sliding_tabs); if (slidingTabLayout != null) {