|
|
@ -1304,10 +1304,12 @@ 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());
|
|
|
|
|
|
|
|
if (d != null) {
|
|
|
|
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
|
|
|
|
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
|
|
|
|
return d;
|
|
|
|
return d;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
float scale = getContext().getResources().getDisplayMetrics().density;
|
|
|
|
float scale = getContext().getResources().getDisplayMetrics().density;
|
|
|
|
int px = (int) (24 * scale + 0.5f);
|
|
|
|
int px = (int) (24 * scale + 0.5f);
|
|
|
|