From e9dccc0e8fdf49f2c539ed6dfbcc0d853d8f794d Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 19 Feb 2014 00:15:46 +0100 Subject: [PATCH] moved comments to correct place --- mobile/src/com/cradle/iitc_mobile/IITC_FileManager.java | 6 +++--- mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_FileManager.java b/mobile/src/com/cradle/iitc_mobile/IITC_FileManager.java index 2c8a32cf..875348e6 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_FileManager.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_FileManager.java @@ -280,9 +280,6 @@ public class IITC_FileManager { public void run() { try { final String url = uri.toString(); - // we need 2 stream since an inputStream is useless after read once - // we read it twice because we first need the script ID for the fileName and - // afterwards reading it again while copying InputStream is; String fileName; if (uri.getScheme().contains("http")) { @@ -290,6 +287,9 @@ public class IITC_FileManager { is = conn.getInputStream(); fileName = uri.getLastPathSegment(); } else { + // we need 2 streams since an inputStream is useless after read once + // we read it twice because we first need the script ID for the fileName and + // afterwards reading it again while copying is = mActivity.getContentResolver().openInputStream(uri); final InputStream isCopy = mActivity.getContentResolver().openInputStream(uri); fileName = getScriptInfo(isCopy).get("id") + ".user.js"; diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index be09bb43..d9e27563 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -95,7 +95,7 @@ public class IITC_WebViewClient extends WebViewClient { public void onReceivedLoginRequest(final WebView view, final String realm, final String account, final String args) { mIitcInjected = false; // Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args); - // ((IITC_Mobile) mContext).onReceivedLoginRequest(this, view, realm, account, args); + // mIitc.onReceivedLoginRequest(this, view, realm, account, args); } /**