mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-17 15:51:33 +01:00
Added option to remove tracking parameters by default
This commit is contained in:
@@ -114,6 +114,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
||||
|
||||
final Context context = getContext();
|
||||
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean sanitize_links = prefs.getBoolean("sanitize_links", false);
|
||||
boolean check_links_dbl = prefs.getBoolean("check_links_dbl", BuildConfig.PLAY_STORE_RELEASE);
|
||||
boolean disconnect_links = prefs.getBoolean("disconnect_links", true);
|
||||
|
||||
@@ -575,6 +576,8 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
||||
tvDisconnectCategories.setVisibility(
|
||||
categories == null || !BuildConfig.DEBUG ? View.GONE : View.VISIBLE);
|
||||
|
||||
cbSanitize.setChecked(sanitize_links);
|
||||
|
||||
cbNotAgain.setText(context.getString(R.string.title_no_ask_for_again, uri.getHost()));
|
||||
cbNotAgain.setVisibility(
|
||||
UriHelper.isSecure(uri) && !TextUtils.isEmpty(uri.getHost())
|
||||
|
||||
Reference in New Issue
Block a user