Merge pull request #4203 from osmandapp/fix_crash_in_track_activity
Fix NPE
This commit is contained in:
commit
3d3694bec0
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue