Merge pull request #4203 from osmandapp/fix_crash_in_track_activity

Fix NPE
This commit is contained in:
Alexey 2017-07-25 19:17:50 +03:00 committed by GitHub
commit 3d3694bec0

View file

@ -76,6 +76,12 @@ public class TrackActivity extends TabActivity {
actionBar.setElevation(0); actionBar.setElevation(0);
} }
setContentView(R.layout.tab_content); setContentView(R.layout.tab_content);
}
@Override
protected void onStart() {
super.onStart();
stopped = false;
slidingTabLayout = (PagerSlidingTabStrip) findViewById(R.id.sliding_tabs); slidingTabLayout = (PagerSlidingTabStrip) findViewById(R.id.sliding_tabs);
if (slidingTabLayout != null) { if (slidingTabLayout != null) {