Android samples: fix scale bar check on exit #32
This commit is contained in:
parent
b32692942f
commit
18d8e18bdf
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 devemux86
|
||||
* Copyright 2016-2017 devemux86
|
||||
* Copyright 2016 Andrey Novikov
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
@ -71,7 +71,8 @@ public class LayerGroupActivity extends BaseMapActivity {
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
mapScaleBar.destroy();
|
||||
if (mapScaleBar != null)
|
||||
mapScaleBar.destroy();
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
|
@ -58,7 +58,8 @@ public class MapsforgeMapActivity extends MapActivity {
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
mMapScaleBar.destroy();
|
||||
if (mMapScaleBar != null)
|
||||
mMapScaleBar.destroy();
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user