mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Small improvement
This commit is contained in:
@@ -2881,8 +2881,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
lld.setLevel(2); // image
|
||||
|
||||
float scale = 1.0f;
|
||||
float width = getContext().getResources().getDisplayMetrics().widthPixels -
|
||||
Helper.dp2pixels(getContext(), 12); // margins;
|
||||
float width = etBody.getWidth();
|
||||
if (image.getIntrinsicWidth() > width)
|
||||
scale = width / image.getIntrinsicWidth();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user