From 32a22585b2d8fadaacd412fd0e8eded9c3399403 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 27 Jun 2020 14:54:58 +0200 Subject: [PATCH] Added translation for received messages --- .../eu/faircode/email/AdapterMessage.java | 50 ++++++++++++++++--- .../res/drawable/baseline_translate_24.xml | 10 ++++ .../res/layout/include_message_navigation.xml | 14 +++++- 3 files changed, 66 insertions(+), 8 deletions(-) create mode 100644 app/src/main/res/drawable/baseline_translate_24.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index e9b9a34ada..45ac37a3c9 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -410,6 +410,7 @@ public class AdapterMessage extends RecyclerView.Adapter + + diff --git a/app/src/main/res/layout/include_message_navigation.xml b/app/src/main/res/layout/include_message_navigation.xml index ce6c4ba173..267e5629ff 100644 --- a/app/src/main/res/layout/include_message_navigation.xml +++ b/app/src/main/res/layout/include_message_navigation.xml @@ -41,7 +41,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginEnd="3dp" - app:constraint_referenced_ids="ibMore,ibInbox,ibJunk,ibTrash,ibArchive,ibMove,ibCopy,ibLabels,ibAnswer,ibUnsubscribe,ibRule,ibUndo" + app:constraint_referenced_ids="ibMore,ibInbox,ibJunk,ibTrash,ibArchive,ibMove,ibCopy,ibLabels,ibAnswer,ibUnsubscribe,ibRule,ibTranslate,ibUndo" app:flow_horizontalBias="0" app:flow_horizontalGap="3dp" app:flow_horizontalStyle="packed" @@ -180,6 +180,18 @@ app:srcCompat="@drawable/baseline_rule_24" tools:ignore="MissingConstraints" /> + +