Changeset 16426 in josm for trunk/src/org/openstreetmap/josm/data/imagery/CachedAttributionBingAerialTileSource.java
- Timestamp:
- 2020-05-16T20:59:34+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/CachedAttributionBingAerialTileSource.java
r14746 r16426 15 15 import org.openstreetmap.josm.gui.util.GuiHelper; 16 16 import org.openstreetmap.josm.io.CacheCustomContent; 17 import org.openstreetmap.josm.io. OnlineResource;17 import org.openstreetmap.josm.io.NetworkManager; 18 18 import org.openstreetmap.josm.tools.HttpClient; 19 19 import org.openstreetmap.josm.tools.Logging; … … 63 63 64 64 @Override 65 protected void checkOfflineAccess() {65 protected boolean isOffline() { 66 66 try { 67 String attributionUrl = getAttributionUrl().toExternalForm(); 68 OnlineResource.ALL.checkOfflineAccess(attributionUrl, attributionUrl); 67 return NetworkManager.isOffline(getAttributionUrl().toExternalForm()); 69 68 } catch (MalformedURLException e) { 70 69 Logging.error(e); 70 return false; 71 71 } 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.