From 617d2d964cdfacf1cb1c42e1aab72f5a9f4285b6 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 15 Jan 2023 08:55:56 +0100 Subject: [PATCH] Export is a pro feature --- .../eu/faircode/email/FragmentOptionsBackup.java | 3 +++ app/src/main/res/layout/fragment_options_backup.xml | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java index 665f8537ff..ae8357d84d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java @@ -109,6 +109,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere private View view; private ImageButton ibHelp; private Button btnExport; + private TextView tvExportPro; private Button btnImport; private CardView cardCloud; private TextView tvCloudInfo; @@ -151,6 +152,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere ibHelp = view.findViewById(R.id.ibHelp); btnExport = view.findViewById(R.id.btnExport); + tvExportPro = view.findViewById(R.id.tvExportPro); btnImport = view.findViewById(R.id.btnImport); cardCloud = view.findViewById(R.id.cardCloud); tvCloudInfo = view.findViewById(R.id.tvCloudInfo); @@ -245,6 +247,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere // Initialize FragmentDialogTheme.setBackground(getContext(), view, false); + Helper.linkPro(tvExportPro); cardCloud.setVisibility( BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && diff --git a/app/src/main/res/layout/fragment_options_backup.xml b/app/src/main/res/layout/fragment_options_backup.xml index 8779b3aba3..e9e2ea72be 100644 --- a/app/src/main/res/layout/fragment_options_backup.xml +++ b/app/src/main/res/layout/fragment_options_backup.xml @@ -111,6 +111,17 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvEncrypted" /> + +