diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index 0d41050e..bccc7966 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -285,7 +285,8 @@ public class IITC_WebViewClient extends WebViewClient { @Override public WebResourceResponse shouldInterceptRequest(final WebView view, String url) { - if (url.matches(".*tile.*jpg") || url.matches(".*tile.*png") || url.matches(".*mts.*googleapis.*")) { + // if any tiles are requested, handle it with IITC_TileManager + if (url.matches(".*tile.*jpg") || url.matches(".*tile.*png") || url.matches(".*mts.*googleapis.*smartmaps")) { try { return mTileManager.getTile(url); } catch (Exception e) { diff --git a/mobile/src/com/cradle/iitc_mobile/async/DownloadTile.java b/mobile/src/com/cradle/iitc_mobile/async/DownloadTile.java index 49e6fbb0..942e2e47 100644 --- a/mobile/src/com/cradle/iitc_mobile/async/DownloadTile.java +++ b/mobile/src/com/cradle/iitc_mobile/async/DownloadTile.java @@ -39,8 +39,8 @@ public class DownloadTile extends AsyncTask { conn = tileUrl.openConnection(); InputStream is = null; is = conn.getInputStream(); - Log.d("iitcm", "writing to path: " + mFilePath); File file = new File(mFilePath, mFileName); + Log.d("iitcm", "writing to file: " + file.toString()); File output = writeTileToFile(is, file, mFilePath); } catch (IOException e) { e.printStackTrace();