VectorTileLayer: check tile source on detach by @Longri, fixes #175
This commit is contained in:
parent
5c370cf3ab
commit
d937a4d6bb
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright 2013 Hannes Janetzek
|
||||
* Copyright 2016 Longri
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@ -175,6 +176,7 @@ public class VectorTileLayer extends TileLayer {
|
||||
@Override
|
||||
public void onDetach() {
|
||||
super.onDetach();
|
||||
if (mTileSource != null)
|
||||
mTileSource.close();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user