Fixed empty reply message body

This commit is contained in:
M66B 2018-10-06 21:31:12 +00:00
parent a4949c6473
commit 3f0aa1b59a
1 changed files with 4 additions and 2 deletions

View File

@ -1304,10 +1304,12 @@ public class FragmentCompose extends FragmentEx {
long id = Long.parseLong(cid[1].replace(BuildConfig.APPLICATION_ID + ".", ""));
File file = EntityAttachment.getFile(getContext(), id);
Drawable d = Drawable.createFromPath(file.getAbsolutePath());
if (d != null) {
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
}
}
}
float scale = getContext().getResources().getDisplayMetrics().density;
int px = (int) (24 * scale + 0.5f);