mirror of https://github.com/M66B/FairEmail.git
Link privacy policy from welcome section
This commit is contained in:
parent
74ed3ef426
commit
5347ed39f6
|
@ -62,6 +62,8 @@ import java.util.List;
|
|||
public class FragmentSetup extends FragmentBase {
|
||||
private ViewGroup view;
|
||||
|
||||
private TextView tvPrivacy;
|
||||
|
||||
private TextView tvNoInternet;
|
||||
private ImageButton ibHelp;
|
||||
private Button btnQuick;
|
||||
|
@ -128,6 +130,8 @@ public class FragmentSetup extends FragmentBase {
|
|||
|
||||
// Get controls
|
||||
|
||||
tvPrivacy = view.findViewById(R.id.tvPrivacy);
|
||||
|
||||
tvNoInternet = view.findViewById(R.id.tvNoInternet);
|
||||
ibHelp = view.findViewById(R.id.ibHelp);
|
||||
btnQuick = view.findViewById(R.id.btnQuick);
|
||||
|
@ -164,6 +168,14 @@ public class FragmentSetup extends FragmentBase {
|
|||
|
||||
// Wire controls
|
||||
|
||||
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(Helper.PRIVACY_URI), false);
|
||||
}
|
||||
});
|
||||
|
||||
ibHelp.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
|
|
@ -69,6 +69,20 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/intro" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvPrivacy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
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/simple" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 144 KiB |
Binary file not shown.
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 263 KiB |
Binary file not shown.
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 144 KiB |
Loading…
Reference in New Issue