From a1cfa9b8d61a7a4dd020e03512d732451d7a0a01 Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Tue, 9 Jul 2013 00:19:31 +0200 Subject: [PATCH] changed comments --- mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java | 4 +--- .../src/com/cradle/iitc_mobile/async/UrlContentToString.java | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index b4542fbb..4fb66594 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -95,9 +95,7 @@ public class IITC_WebViewClient extends WebViewClient { // load iitc script from web or asset folder if (iitc_source.contains("http")) { URL url = new URL(iitc_source); - // if url.openStream() is parsed from a scanner - // the NetworkOnMainThread exception is thrown - // use a async task for this + // if parsing of the online iitc source timed out, use the script from assets try { js = new UrlContentToString().execute(url).get(5, TimeUnit.SECONDS); } catch (InterruptedException e) { diff --git a/mobile/src/com/cradle/iitc_mobile/async/UrlContentToString.java b/mobile/src/com/cradle/iitc_mobile/async/UrlContentToString.java index f73b17a3..4feb40e5 100644 --- a/mobile/src/com/cradle/iitc_mobile/async/UrlContentToString.java +++ b/mobile/src/com/cradle/iitc_mobile/async/UrlContentToString.java @@ -9,9 +9,9 @@ import java.net.URL; import java.util.Scanner; /* - * this class parses the content of an web page. + * this class parses the content of a web page. * since network operations shouldn't be done on main UI thread - * we use an async task for this. + * (NetworkOnMainThread exception is thrown) we use an async task for this. */ public class UrlContentToString extends AsyncTask {