mirror of https://github.com/M66B/FairEmail.git
Not found images are broken images
This commit is contained in:
parent
4afcf6ef4c
commit
5c98af8cdb
|
@ -40,6 +40,7 @@ import java.io.BufferedInputStream;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -196,6 +197,8 @@ public class HtmlHelper {
|
||||||
Log.i("Downloading " + source);
|
Log.i("Downloading " + source);
|
||||||
try {
|
try {
|
||||||
is = new URL(source).openStream();
|
is = new URL(source).openStream();
|
||||||
|
} catch (FileNotFoundException ex) {
|
||||||
|
throw ex;
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
Drawable d = context.getResources().getDrawable(R.drawable.baseline_cloud_off_24, context.getTheme());
|
Drawable d = context.getResources().getDrawable(R.drawable.baseline_cloud_off_24, context.getTheme());
|
||||||
|
|
Loading…
Reference in New Issue