Focus on disabling tracking paramaters

This commit is contained in:
M66B 2023-12-25 08:38:23 +01:00
parent f70a822017
commit be9a7bfd46
2 changed files with 9 additions and 0 deletions

View File

@ -324,6 +324,11 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
cbSanitize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
cbSanitize.setTextColor(Helper.resolveColor(context,
checked ? android.R.attr.textColorSecondary : R.attr.colorWarning));
cbSanitize.setTypeface(
checked ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
Uri link = (checked ? sanitized : uri);
boolean secure = cbSecure.isChecked();
cbSecure.setTag(secure);

View File

@ -173,6 +173,7 @@
android:layout_marginTop="12dp"
android:drawablePadding="6dp"
android:text="@string/title_link_http"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
@ -184,6 +185,9 @@
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_sanitize_link"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cbSecure" />