Export is a pro feature

pull/212/head
M66B 2 years ago
parent ffcfb16227
commit 617d2d964c

@ -109,6 +109,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
private View view; private View view;
private ImageButton ibHelp; private ImageButton ibHelp;
private Button btnExport; private Button btnExport;
private TextView tvExportPro;
private Button btnImport; private Button btnImport;
private CardView cardCloud; private CardView cardCloud;
private TextView tvCloudInfo; private TextView tvCloudInfo;
@ -151,6 +152,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
ibHelp = view.findViewById(R.id.ibHelp); ibHelp = view.findViewById(R.id.ibHelp);
btnExport = view.findViewById(R.id.btnExport); btnExport = view.findViewById(R.id.btnExport);
tvExportPro = view.findViewById(R.id.tvExportPro);
btnImport = view.findViewById(R.id.btnImport); btnImport = view.findViewById(R.id.btnImport);
cardCloud = view.findViewById(R.id.cardCloud); cardCloud = view.findViewById(R.id.cardCloud);
tvCloudInfo = view.findViewById(R.id.tvCloudInfo); tvCloudInfo = view.findViewById(R.id.tvCloudInfo);
@ -245,6 +247,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
// Initialize // Initialize
FragmentDialogTheme.setBackground(getContext(), view, false); FragmentDialogTheme.setBackground(getContext(), view, false);
Helper.linkPro(tvExportPro);
cardCloud.setVisibility( cardCloud.setVisibility(
BuildConfig.DEBUG && BuildConfig.DEBUG &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&

@ -111,6 +111,17 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvEncrypted" /> app:layout_constraintTop_toBottomOf="@id/tvEncrypted" />
<TextView
android:id="@+id/tvExportPro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_pro_feature"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnExport" />
<Button <Button
android:id="@+id/btnImport" android:id="@+id/btnImport"
style="?android:attr/buttonStyleSmall" style="?android:attr/buttonStyleSmall"
@ -121,7 +132,7 @@
android:drawablePadding="6dp" android:drawablePadding="6dp"
android:text="@string/title_setup_import" android:text="@string/title_setup_import"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnExport" /> app:layout_constraintTop_toBottomOf="@id/tvExportPro" />
<TextView <TextView
android:id="@+id/tvScroll" android:id="@+id/tvScroll"

Loading…
Cancel
Save