() {
+ @Override
+ protected void onPreExecute(Bundle args) {
+ pbWait.setVisibility(View.VISIBLE);
+ ibSave.setEnabled(false);
+ }
+
+ @Override
+ protected void onPostExecute(Bundle args) {
+ pbWait.setVisibility(View.GONE);
+ ibSave.setEnabled(true);
+ }
+
+ @Override
+ protected EntityAttachment onExecute(Context context, Bundle args) {
+ long id = args.getLong("id");
+
+ DB db = DB.getInstance(context);
+ return db.attachment().getAttachment(id);
+ }
+
+ @Override
+ protected void onExecuted(Bundle args, EntityAttachment attachment) {
+ if (attachment == null)
+ return;
+
+ civ.setImageUriAsync(attachment.getUri(context));
+ }
+
+ @Override
+ protected void onException(Bundle args, Throwable ex) {
+ Log.unexpectedError(getParentFragmentManager(), ex);
+ }
+ }.execute(this, args, "edit:image");
+
+ return dialog;
+ }
+}
diff --git a/app/src/main/res/layout/dialog_edit_image.xml b/app/src/main/res/layout/dialog_edit_image.xml
index 4ef3bc89ca..3ccc556e0d 100644
--- a/app/src/main/res/layout/dialog_edit_image.xml
+++ b/app/src/main/res/layout/dialog_edit_image.xml
@@ -9,6 +9,7 @@
android:id="@+id/civ"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:minHeight="60dp"
app:layout_constraintBottom_toTopOf="@+id/ibRotate"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -20,9 +21,7 @@
android:layout_height="36dp"
android:layout_marginTop="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
- android:contentDescription="@string/title_info"
android:scaleType="fitCenter"
- android:tooltipText="@string/title_info"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/civ"
@@ -36,9 +35,7 @@
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
- android:contentDescription="@string/title_info"
android:scaleType="fitCenter"
- android:tooltipText="@string/title_info"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/ibRotate"
app:layout_constraintTop_toBottomOf="@id/civ"
@@ -52,13 +49,13 @@
android:layout_marginStart="24dp"
android:layout_marginTop="12dp"
android:background="?android:attr/selectableItemBackgroundBorderless"
- android:contentDescription="@string/title_save"
+ android:contentDescription="@android:string/cancel"
android:scaleType="fitCenter"
- android:tooltipText="@string/title_save"
+ android:tooltipText="@android:string/cancel"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/ibFlip"
app:layout_constraintTop_toBottomOf="@id/civ"
- app:srcCompat="@drawable/twotone_cancel_24" />
+ app:srcCompat="@drawable/twotone_close_24" />
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
index 20ce7aaea2..976685568b 100644
--- a/index.html
+++ b/index.html
@@ -2237,6 +2237,9 @@ $NotDisplayed
Force light for reformatted message view (1.2254+)
Show force light menu item / button (when configured) to force a light theme for reformatted messages.
+Basic image editor (1.2257+)
+Display a basic image editor when tapping an inserted image.
+
(126) Can message previews be sent to my smartwatch?
🌎 Google Translate
FairEmail fetches a message in two steps: