kopia lustrzana https://github.com/JOSM/MapWithAI
MapWithAILayerInfo: Fix typo
Call was to NetworkManager#isOffline, but was stored in a variable named "online". Fix: Invert the returned boolean from NetworkManager#isOffline Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head
rodzic
453ceb38b9
commit
5930bda453
|
@ -309,7 +309,7 @@ public class MapWithAILayerInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void loadSource(String source) {
|
protected void loadSource(String source) {
|
||||||
boolean online = NetworkManager.isOffline(source);
|
boolean online = !NetworkManager.isOffline(source);
|
||||||
if (clearCache && online) {
|
if (clearCache && online) {
|
||||||
CachedFile.cleanup(source);
|
CachedFile.cleanup(source);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue