Browse Source

Fixed empty reply message body

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

+ 4
- 2
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -1304,8 +1304,10 @@ public class FragmentCompose extends FragmentEx {
long id = Long.parseLong(cid[1].replace(BuildConfig.APPLICATION_ID + ".", "")); long id = Long.parseLong(cid[1].replace(BuildConfig.APPLICATION_ID + ".", ""));
File file = EntityAttachment.getFile(getContext(), id); File file = EntityAttachment.getFile(getContext(), id);
Drawable d = Drawable.createFromPath(file.getAbsolutePath()); Drawable d = Drawable.createFromPath(file.getAbsolutePath());
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
if (d != null) {
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
}
} }
} }


Loading…
Cancel
Save