Fixed getPictureForAddress()
This commit is contained in:
@@ -89,11 +89,10 @@ public class BoteHelper extends GeneralHelper {
|
|||||||
* @throws GeneralSecurityException
|
* @throws GeneralSecurityException
|
||||||
*/
|
*/
|
||||||
public static Bitmap getPictureForAddress(String address) throws PasswordException, IOException, 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
|
// Address was found; try address book first
|
||||||
String base64dest = EmailDestination.extractBase64Dest(fullAdr);
|
|
||||||
Contact c = getContact(base64dest);
|
Contact c = getContact(base64dest);
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
// Address is in address book
|
// Address is in address book
|
||||||
|
|||||||
Reference in New Issue
Block a user