@Deprecated
    public void updateProfileByIdentifier(@NonNull IProfile newProfile) {
        int found = getPositionByIdentifier(newProfile.getIdentifier());
        if (found > -1) {
            mAccountHeaderBuilder.mProfiles.set(found, newProfile);
            mAccountHeaderBuilder.updateHeaderAndList();
        }
    }
@ Deprecated public void updateProfileByIdentifier ( @ NonNull IProfile newProfile ) { int found = getPositionByIdentifier ( newProfile . getIdentifier ( ) ) ; if ( found > - 1 ) { mAccountHeaderBuilder . mProfiles . set ( found , newProfile ) ; mAccountHeaderBuilder . updateHeaderAndList ( ) ; } }
Helper method to update a profile using it's identifier

@param newProfile