We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im trying to use the get avatar method but it returns the default value and not the image of the contact:
public Drawable getAvatar(final Context context, final Drawable defaultValue) { Log.d(TAG, "getAvatar()"); if (this.mAvatar == null) { if (this.mAvatarData != null) { Bitmap b = BitmapFactory.decodeByteArray(this.mAvatarData, 0, this.mAvatarData.length); this.mAvatar = new BitmapDrawable(context.getResources(), b); Log.d(TAG, "BitmapSet"); } } if (this.mAvatar == null) { Log.d(TAG, "ImageNotAvailable"); return defaultValue; } return this.mAvatar; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Im trying to use the get avatar method but it returns the default value and not the image of the contact:
public Drawable getAvatar(final Context context, final Drawable defaultValue) {
Log.d(TAG, "getAvatar()");
if (this.mAvatar == null) {
if (this.mAvatarData != null) {
Bitmap b = BitmapFactory.decodeByteArray(this.mAvatarData, 0,
this.mAvatarData.length);
this.mAvatar = new BitmapDrawable(context.getResources(), b);
Log.d(TAG, "BitmapSet");
}
}
if (this.mAvatar == null) {
Log.d(TAG, "ImageNotAvailable");
return defaultValue;
}
return this.mAvatar;
}
The text was updated successfully, but these errors were encountered: