diff --git a/FAQ.md b/FAQ.md
index 096337c562..4ad78eeda6 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -3714,8 +3714,6 @@ Unfortunately, it is not possible to hide messages on the email server too.
1. [Copy](https://www.deepl.com/pro-account/plan) the authentication key
1. In the message composer tap on the faint translate button (文A), select *Configure* and paste the key
-You might want to read the [privacy policy](https://www.deepl.com/privacy/) of DeepL.
-
This feature requires an internet connection.
diff --git a/app/src/main/java/eu/faircode/email/DeepL.java b/app/src/main/java/eu/faircode/email/DeepL.java
index efbf47c3a4..d430789a09 100644
--- a/app/src/main/java/eu/faircode/email/DeepL.java
+++ b/app/src/main/java/eu/faircode/email/DeepL.java
@@ -24,6 +24,8 @@ import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.content.res.Resources;
+import android.graphics.Paint;
+import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
@@ -66,6 +68,7 @@ public class DeepL {
private static JSONArray jlanguages = null;
private static final int DEEPL_TIMEOUT = 20; // seconds
+ private static final String PRIVACY_URI = "https://www.deepl.com/privacy/";
// curl https://api-free.deepl.com/v2/languages \
// -d auth_key=... \
@@ -315,6 +318,7 @@ public class DeepL {
final CheckBox cbPro = view.findViewById(R.id.cbPro);
final CheckBox cbSmall = view.findViewById(R.id.cbSmall);
final TextView tvUsage = view.findViewById(R.id.tvUsage);
+ final TextView tvPrivacy = view.findViewById(R.id.tvPrivacy);
ibInfo.setOnClickListener(new View.OnClickListener() {
@Override
@@ -323,6 +327,14 @@ public class DeepL {
}
});
+ tvPrivacy.setPaintFlags(tvPrivacy.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
+ tvPrivacy.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Helper.view(v.getContext(), Uri.parse(PRIVACY_URI), false);
+ }
+ });
+
etKey.setText(key);
cbPro.setChecked(pro);
cbSmall.setChecked(small);
diff --git a/app/src/main/res/layout/dialog_deepl.xml b/app/src/main/res/layout/dialog_deepl.xml
index 2711f1a415..4bf99afa91 100644
--- a/app/src/main/res/layout/dialog_deepl.xml
+++ b/app/src/main/res/layout/dialog_deepl.xml
@@ -78,5 +78,19 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSmall" />
+
+