mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 709250 - Disable jar reader for now.
This commit is contained in:
parent
78439dc8b2
commit
9ccdd929f0
@ -295,22 +295,7 @@ public class Favicons {
|
||||
image = (BitmapDrawable) Drawable.createFromStream(byteStream, "src");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// Trying to read icons from nested jar files will fail
|
||||
if (mFaviconUrl.startsWith("jar:jar:")) {
|
||||
try {
|
||||
InputStream stream = GeckoJarReader.getStream(mFaviconUrl);
|
||||
if (stream != null) {
|
||||
image = new BitmapDrawable(stream);
|
||||
stream.close();
|
||||
} else {
|
||||
Log.d(LOGTAG, "Error getting favicon from jar: " + e);
|
||||
}
|
||||
} catch(IOException ex) {
|
||||
Log.e(LOGTAG, "Error closing stream", ex);
|
||||
}
|
||||
} else {
|
||||
Log.e(LOGTAG, "Error downloading favicon", e);
|
||||
}
|
||||
Log.e(LOGTAG, "Error downloading favicon", e);
|
||||
} finally {
|
||||
if (urlConnection != null && urlConnection instanceof HttpURLConnection) {
|
||||
HttpURLConnection httpConnection = (HttpURLConnection) urlConnection;
|
||||
|
Loading…
Reference in New Issue
Block a user