TileLoader/TileDataSource: add cancel() method
- used to force closing sockets when changing theme or tilesource
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user