mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Disconnect's protecting list is unsuitable for tracking images
This commit is contained in:
parent
a1288aa3df
commit
7e82dee665
2 changed files with 2 additions and 1 deletions
|
@ -502,6 +502,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
|
||||||
sb.append(value);
|
sb.append(value);
|
||||||
}
|
}
|
||||||
tvClientId.setText(sb);
|
tvClientId.setText(sb);
|
||||||
|
swDisconnectImages.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);
|
||||||
|
|
||||||
|
|
|
@ -2186,7 +2186,7 @@ public class HtmlHelper {
|
||||||
|
|
||||||
static void removeTrackingPixels(Context context, Document document) {
|
static void removeTrackingPixels(Context context, Document document) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean disconnect_images = prefs.getBoolean("disconnect_images", false);
|
boolean disconnect_images = (prefs.getBoolean("disconnect_images", false) && BuildConfig.DEBUG);
|
||||||
|
|
||||||
Drawable d = context.getDrawable(R.drawable.twotone_my_location_24);
|
Drawable d = context.getDrawable(R.drawable.twotone_my_location_24);
|
||||||
d.setTint(Helper.resolveColor(context, R.attr.colorWarning));
|
d.setTint(Helper.resolveColor(context, R.attr.colorWarning));
|
||||||
|
|
Loading…
Reference in a new issue