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 2013 Hannes Janetzek
|
||||||
* Copyright 2016 devemux86
|
* Copyright 2016-2017 devemux86
|
||||||
* Copyright 2016 Andrey Novikov
|
* Copyright 2016 Andrey Novikov
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
@ -71,6 +71,7 @@ public class LayerGroupActivity extends BaseMapActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
|
if (mapScaleBar != null)
|
||||||
mapScaleBar.destroy();
|
mapScaleBar.destroy();
|
||||||
|
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
@ -58,6 +58,7 @@ public class MapsforgeMapActivity extends MapActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
|
if (mMapScaleBar != null)
|
||||||
mMapScaleBar.destroy();
|
mMapScaleBar.destroy();
|
||||||
|
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user