protected void notifyContactListUpdated(ContactList list,int type,Contact contact){
synchronized (this) {
    if (type == ContactListListener.LIST_CONTACT_ADDED) {
      list.insertToCache(contact);
    }
 else     if (type == ContactListListener.LIST_CONTACT_REMOVED) {
      list.removeFromCache(contact);
      mDeletePending.remove(contact);
    }
  }
  for (  ContactListListener listener : mContactListListeners) {
    listener.onContactChange(type,list,contact);
  }
}

protected void notifyContactListUpdated ( ContactList list , int type , Contact contact ) { synchronized ( this ) { if ( type == ContactListListener . LIST_CONTACT_ADDED ) { list . insertToCache ( contact ) ; } else if ( type == ContactListListener . LIST_CONTACT_REMOVED ) { list . removeFromCache ( contact ) ; mDeletePending . remove ( contact ) ; } } for ( ContactListListener listener : mContactListListeners ) { listener . onContactChange ( type , list , contact ) ; } }
notify that a contact has been added to or removed from a list .
