add onDetach-method to MapScaleBarLayer to free resources automatically
removed mapScaleBar.destroy() methods from onDestroy-Activity methods changed global mapScaleBar-variables to local
This commit is contained in:
@@ -62,4 +62,10 @@ public class MapScaleBarLayer extends Layer implements Map.UpdateListener {
|
||||
|
||||
mapScaleBar.redrawNeeded = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDetach() {
|
||||
super.onDetach();
|
||||
mapScaleBar.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user