public void setOptionalFields(@Nullable List<String> optionalAddressFields) {
        if (optionalAddressFields != null) {
            mOptionalShippingInfoFields = optionalAddressFields;
        } else {
            mOptionalShippingInfoFields = new ArrayList<>();
        }
        renderLabels();
        renderCountrySpecificLabels(mCountryAutoCompleteTextView.getSelectedCountryCode());
    }
public void setOptionalFields ( @ Nullable List < String > optionalAddressFields ) { if ( optionalAddressFields != null ) { mOptionalShippingInfoFields = optionalAddressFields ; } else { mOptionalShippingInfoFields = new ArrayList < > ( ) ; } renderLabels ( ) ; renderCountrySpecificLabels ( mCountryAutoCompleteTextView . getSelectedCountryCode ( ) ) ; }
@param optionalAddressFields address fields that should be optional.