TileLoader/TileDataSource: add cancel() method

- used to force closing sockets when changing theme or tilesource
This commit is contained in:
Hannes Janetzek
2014-10-03 02:34:13 +02:00
parent 41085f915e
commit 5f9a9cc909
18 changed files with 107 additions and 76 deletions

View File

@@ -72,7 +72,12 @@ public class JsonTileDataSource implements ITileDataSource {
boolean mFinished;
@Override
public void destroy() {
public void dispose() {
mFinished = true;
}
@Override
public void cancel() {
mFinished = true;
}