/**
  * Returns the local user status drawable.
  *
  * @return the local user status drawable
  */
 public synchronized Drawable getLocalStatusDrawable() {
   byte[] statusImage = StatusUtil.getContactStatusIcon(getGlobalStatus());
   if (statusImage != localStatusRaw) {
     localStatusRaw = statusImage;
     localStatusDrawable =
         localStatusRaw != null ? AndroidImageUtil.drawableFromBytes(statusImage) : null;
   }
   return localStatusDrawable;
 }
  /**
   * Returns the local user avatar drawable.
   *
   * @return the local user avatar drawable.
   */
  public Drawable getLocalAvatarDrawable() {
    GlobalDisplayDetailsService displayDetailsService =
        AndroidGUIActivator.getGlobalDisplayDetailsService();

    byte[] avatarImage = displayDetailsService.getGlobalDisplayAvatar();
    // Re-create drawable only if avatar has changed
    if (avatarImage != localAvatarRaw) {
      localAvatarRaw = avatarImage;
      localAvatar = AndroidImageUtil.roundedDrawableFromBytes(avatarImage);
    }
    return localAvatar;
  }