From 04bfb2f167191a96132e11483b69f8ddef46a42a Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 9 Nov 2022 12:28:03 +0100 Subject: [PATCH] Changed DeepL info button into settings button --- .../main/java/eu/faircode/email/FragmentOptionsMisc.java | 3 ++- app/src/main/res/layout/fragment_options_misc.xml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index 658520d2b9..6db8b4d543 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -772,7 +772,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc ibDeepL.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - Helper.viewFAQ(v.getContext(), 167, true); + DeepL.FragmentDialogDeepL fragment = new DeepL.FragmentDialogDeepL(); + fragment.show(getParentFragmentManager(), "deepl:configure"); } }); diff --git a/app/src/main/res/layout/fragment_options_misc.xml b/app/src/main/res/layout/fragment_options_misc.xml index 8b61f6b391..3cf229202a 100644 --- a/app/src/main/res/layout/fragment_options_misc.xml +++ b/app/src/main/res/layout/fragment_options_misc.xml @@ -469,11 +469,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:contentDescription="@string/title_info" - android:tooltipText="@string/title_info" + android:contentDescription="@string/title_translate_configure" + android:tooltipText="@string/title_translate_configure" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvDeepLPrivacy" - app:srcCompat="@drawable/twotone_info_24" /> + app:srcCompat="@drawable/twotone_settings_24" />