Disconnect's protecting list is unsuitable for tracking images

This commit is contained in:
M66B 2022-06-07 18:12:49 +02:00
parent a1288aa3df
commit 7e82dee665
2 changed files with 2 additions and 1 deletions

View File

@ -502,6 +502,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
sb.append(value);
}
tvClientId.setText(sb);
swDisconnectImages.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
PreferenceManager.getDefaultSharedPreferences(getContext()).registerOnSharedPreferenceChangeListener(this);

View File

@ -2186,7 +2186,7 @@ public class HtmlHelper {
static void removeTrackingPixels(Context context, Document document) {
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);
d.setTint(Helper.resolveColor(context, R.attr.colorWarning));