moved comments to correct place
This commit is contained in:
parent
94e63430f1
commit
e9dccc0e8f
@ -280,9 +280,6 @@ public class IITC_FileManager {
|
|||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
final String url = uri.toString();
|
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;
|
InputStream is;
|
||||||
String fileName;
|
String fileName;
|
||||||
if (uri.getScheme().contains("http")) {
|
if (uri.getScheme().contains("http")) {
|
||||||
@ -290,6 +287,9 @@ public class IITC_FileManager {
|
|||||||
is = conn.getInputStream();
|
is = conn.getInputStream();
|
||||||
fileName = uri.getLastPathSegment();
|
fileName = uri.getLastPathSegment();
|
||||||
} else {
|
} 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);
|
is = mActivity.getContentResolver().openInputStream(uri);
|
||||||
final InputStream isCopy = mActivity.getContentResolver().openInputStream(uri);
|
final InputStream isCopy = mActivity.getContentResolver().openInputStream(uri);
|
||||||
fileName = getScriptInfo(isCopy).get("id") + ".user.js";
|
fileName = getScriptInfo(isCopy).get("id") + ".user.js";
|
||||||
|
@ -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) {
|
public void onReceivedLoginRequest(final WebView view, final String realm, final String account, final String args) {
|
||||||
mIitcInjected = false;
|
mIitcInjected = false;
|
||||||
// Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args);
|
// Log.d("iitcm", "Login requested: " + realm + " " + account + " " + args);
|
||||||
// ((IITC_Mobile) mContext).onReceivedLoginRequest(this, view, realm, account, args);
|
// mIitc.onReceivedLoginRequest(this, view, realm, account, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user