Disabled Gravatars

This commit is contained in:
M66B
2020-01-18 10:37:36 +01:00
parent 9419ca1e4a
commit 6522f18110
2 changed files with 3 additions and 2 deletions

View File

@@ -168,11 +168,11 @@ public class ContactInfo {
if (info.bitmap == null) {
boolean gravatars = prefs.getBoolean("gravatars", false);
if (gravatars) {
if (gravatars && BuildConfig.DEBUG) {
HttpURLConnection urlConnection = null;
try {
String hash = Helper.md5(address.getAddress().getBytes());
URL url = new URL("https://www.gravatar.com/avatar/" + hash+"?d=404");
URL url = new URL("https://www.gravatar.com/avatar/" + hash + "?d=404");
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestMethod("GET");