Fixed getPictureForAddress()

This commit is contained in:
str4d
2014-06-16 02:27:39 +00:00
parent 190bdb4c18
commit ff6e9f5e5e

View File

@@ -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