1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 21:55:13 +00:00

Gravatar not found is to be expected

This commit is contained in:
M66B 2020-01-22 20:33:57 +01:00
parent 2517cdde03
commit afbcd2dc69

View file

@ -182,10 +182,11 @@ public class ContactInfo {
urlConnection.connect();
int status = urlConnection.getResponseCode();
if (status != HttpURLConnection.HTTP_OK)
if (status == HttpURLConnection.HTTP_OK)
info.bitmap = BitmapFactory.decodeStream(urlConnection.getInputStream());
else if (status != HttpURLConnection.HTTP_NOT_FOUND)
throw new IOException("HTTP status=" + status);
info.bitmap = BitmapFactory.decodeStream(urlConnection.getInputStream());
} catch (Throwable ex) {
Log.w(ex);
} finally {