diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 4a14b118c6..93a31ad466 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -5551,6 +5551,7 @@ public class FragmentCompose extends FragmentBase { boolean image_dialog = prefs.getBoolean("image_dialog", true); final ViewGroup dview = (ViewGroup) LayoutInflater.from(getContext()).inflate(R.layout.dialog_add_image, null); + final ImageView ivType = dview.findViewById(R.id.ivType); final RadioGroup rgAction = dview.findViewById(R.id.rgAction); final CheckBox cbResize = dview.findViewById(R.id.cbResize); final Spinner spResize = dview.findViewById(R.id.spResize); @@ -5559,6 +5560,8 @@ public class FragmentCompose extends FragmentBase { final CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain); final TextView tvNotAgain = dview.findViewById(R.id.tvNotAgain); + ivType.setImageResource(title == R.string.title_attachment_photo + ? R.drawable.twotone_photo_camera_24 : R.drawable.twotone_image_24); rgAction.check(add_inline ? R.id.rbInline : R.id.rbAttach); cbResize.setChecked(resize_images); spResize.setEnabled(resize_images); diff --git a/app/src/main/res/layout/dialog_add_image.xml b/app/src/main/res/layout/dialog_add_image.xml index 84dca9df2b..566d5ae4b0 100644 --- a/app/src/main/res/layout/dialog_add_image.xml +++ b/app/src/main/res/layout/dialog_add_image.xml @@ -6,14 +6,26 @@ android:padding="24dp"> + + + app:layout_constraintTop_toBottomOf="@id/tvTitle">