DeepL privacy policy

pull/199/head
M66B 3 years ago
parent 03e109b0e9
commit 0aa7b6fa5d

@ -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.
<br />

@ -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);

@ -78,5 +78,19 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSmall" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvPrivacy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:drawableTint="?android:attr/textColorLink"
android:text="@string/title_privacy_policy"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvUsage" />
</androidx.constraintlayout.widget.ConstraintLayout>
</eu.faircode.email.ScrollViewEx>

Loading…
Cancel
Save