Added tutorials link

pull/209/head
M66B 3 years ago
parent 18be7a597f
commit 0351ac4715

@ -84,6 +84,7 @@ public class FragmentSetup extends FragmentBase {
private TextView tvNoInternet;
private ImageButton ibHelp;
private Button btnQuick;
private TextView tvTutorials;
private TextView tvQuickNew;
private CardView cardManual;
@ -164,6 +165,7 @@ public class FragmentSetup extends FragmentBase {
tvNoInternet = view.findViewById(R.id.tvNoInternet);
ibHelp = view.findViewById(R.id.ibHelp);
btnQuick = view.findViewById(R.id.btnQuick);
tvTutorials = view.findViewById(R.id.tvTutorials);
tvQuickNew = view.findViewById(R.id.tvQuickNew);
cardManual = view.findViewById(R.id.cardManual);
@ -396,6 +398,14 @@ public class FragmentSetup extends FragmentBase {
}
});
tvTutorials.setPaintFlags(tvTutorials.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvTutorials.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(v.getContext(), Uri.parse(Helper.TUTORIALS_URI), false);
}
});
tvQuickNew.setPaintFlags(tvQuickNew.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvQuickNew.setOnClickListener(new View.OnClickListener() {
@Override

@ -188,6 +188,7 @@ public class Helper {
static final String PACKAGE_CHROME = "com.android.chrome";
static final String PACKAGE_WEBVIEW = "https://play.google.com/store/apps/details?id=com.google.android.webview";
static final String PRIVACY_URI = "https://email.faircode.eu/privacy/";
static final String TUTORIALS_URI = "https://github.com/M66B/FairEmail/tree/master/tutorials";
static final String XDA_URI = "https://forum.xda-developers.com/showthread.php?t=3824168";
static final String SUPPORT_URI = "https://contact.faircode.eu/";
static final String TEST_URI = "https://play.google.com/apps/testing/" + BuildConfig.APPLICATION_ID;

@ -239,6 +239,22 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvNoInternet" />
<TextView
android:id="@+id/tvTutorials"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:drawableTint="?android:attr/textColorLink"
android:text="@string/title_setup_wizard_tutorials"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="?android:attr/textColorLink"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnQuick" />
<TextView
android:id="@+id/tvQuickRemarkMultiple"
android:layout_width="0dp"
@ -248,7 +264,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnQuick" />
app:layout_constraintTop_toBottomOf="@id/tvTutorials" />
<TextView
android:id="@+id/tvQuickNew"

@ -187,6 +187,7 @@
<string name="title_setup_quick_smtp">SMTP server to send messages</string>
<string name="title_setup_quick_certificates">Server certificates</string>
<string name="title_setup_wizard">Wizard</string>
<string name="title_setup_wizard_tutorials">Tutorials</string>
<string name="title_setup_wizard_multiple">The wizard can be used multiple times to set up multiple accounts</string>
<string name="title_setup_wizard_new">I need a new email address</string>
<string name="title_setup_manual">Manual setup and account options</string>

Loading…
Cancel
Save