From ff6e9f5e5e038093ffbdd65cfdf378f2b0ec18cd Mon Sep 17 00:00:00 2001 From: str4d Date: Mon, 16 Jun 2014 02:27:39 +0000 Subject: [PATCH] Fixed getPictureForAddress() --- app/src/main/java/i2p/bote/android/util/BoteHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/i2p/bote/android/util/BoteHelper.java b/app/src/main/java/i2p/bote/android/util/BoteHelper.java index 0147b4f..e7aa202 100644 --- a/app/src/main/java/i2p/bote/android/util/BoteHelper.java +++ b/app/src/main/java/i2p/bote/android/util/BoteHelper.java @@ -89,11 +89,10 @@ public class BoteHelper extends GeneralHelper { * @throws GeneralSecurityException */ public static Bitmap getPictureForAddress(String address) throws PasswordException, IOException, GeneralSecurityException { - String fullAdr = getNameAndDestination(address); + String base64dest = extractEmailDestination(address); - if (!address.equals(fullAdr)) { + if (base64dest != null) { // Address was found; try address book first - String base64dest = EmailDestination.extractBase64Dest(fullAdr); Contact c = getContact(base64dest); if (c != null) { // Address is in address book