moved comments to correct place

This commit is contained in:
Philipp Schaefer 2014-02-19 00:15:46 +01:00
parent 94e63430f1
commit e9dccc0e8f
2 changed files with 4 additions and 4 deletions

View File

@ -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";

View File

@ -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);
}
/**