src/net/java/sip/communicator/impl/protocol/jabber/MobileIndicator.java
/**
     * Updates contact mobile status.
     * @param contact the contact.
     * @param resources the list of contact resources.
     */
Updates contact mobile status.
@param contact the contact.
@param resources the list of contact resources.
Updates contact mobile status . @param contact the contact . @param resources the list of contact resources .
private void updateContactMobileStatus(
        ContactJabberImpl contact,
        List<ContactResource> resources)
    {
        boolean allMobile = false;
        for(ContactResource res : resources)
        {
            if(res.isMobile())
                allMobile = true;
            else
            {
                allMobile = false;
                break;
            }
        }
        if(resources.size() > 0)
            contact.setMobile(allMobile);
        else
            contact.setMobile(false);
    }
private void updateContactMobileStatus ( ContactJabberImpl contact , List < ContactResource > resources ) { boolean allMobile = false ; for ( ContactResource res : resources ) { if ( res . isMobile ( ) ) allMobile = true ; else { allMobile = false ; break ; } } if ( resources . size ( ) > 0 ) contact . setMobile ( allMobile ) ; else contact . setMobile ( false ) ; }
Updates contact mobile status.
Updates contact mobile status .
// check whether all are mobile