Browse Source

Handle HTML images without source

main
M66B 6 years ago
parent
commit
f207a7deb9
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      app/src/main/java/eu/faircode/email/FragmentMessage.java

+ 6
- 3
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -1078,12 +1078,15 @@ public class FragmentMessage extends FragmentEx {
image.delete();
}
// Create unique file name
File file = new File(dir, id + "_" + source.hashCode());
InputStream is = null;
FileOutputStream os = null;
try {
if (source == null)
throw new IllegalArgumentException("Html.ImageGetter.getDrawable(source == null)");
// Create unique file name
File file = new File(dir, id + "_" + source.hashCode());
// Get input stream
if (file.exists()) {
Log.i(Helper.TAG, "Using cached " + file);


Loading…
Cancel
Save