Exemplo n.º 1
0
 public boolean isBlocked(String address) {
   try {
     return mAdaptee.isBlocked(address);
   } catch (ImException e) {
     Log.e(TAG, e.getMessage());
     return false;
   }
 }
Exemplo n.º 2
0
  public int unBlockContact(String address) {
    try {
      mAdaptee.unblockContactAsync(address);
    } catch (ImException e) {
      Log.e(TAG, e.getMessage());
      return e.getImError().getCode();
    }

    return ImErrorInfo.NO_ERROR;
  }