Pwned: link caption

pull/215/head
M66B 8 months ago
parent 2589a5003f
commit 21ac49f1c4

@ -52,6 +52,7 @@ public class FragmentDialogPwned extends FragmentDialogBase {
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
final Context context = getContext();
final View dview = LayoutInflater.from(context).inflate(R.layout.dialog_pwned, null);
final TextView tvCaption = dview.findViewById(R.id.tvCaption);
final TextView tvPwned = dview.findViewById(R.id.tvPwned);
final Button btnCheck = dview.findViewById(R.id.btnCheck);
final ContentLoadingProgressBar pbCheck = dview.findViewById(R.id.pbCheck);
@ -146,7 +147,14 @@ public class FragmentDialogPwned extends FragmentDialogBase {
pbCheck.setVisibility(View.GONE);
grpReady.setVisibility(View.GONE);
tvPrivacy.setText(BuildConfig.PWNED_URI + "Privacy");
tvCaption.getPaint().setUnderlineText(true);
tvCaption.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(v.getContext(), Uri.parse(BuildConfig.PWNED_URI), true);
}
});
tvPrivacy.getPaint().setUnderlineText(true);
tvPrivacy.setOnClickListener(new View.OnClickListener() {
@Override

@ -15,13 +15,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableStart="@drawable/twotone_security_24"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:text="@string/title_pawned"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
android:textColor="?android:attr/textColorLink"
app:drawableTint="?android:attr/textColorLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvPwned"
android:layout_width="0dp"

Loading…
Cancel
Save