|
|
@ -294,10 +294,10 @@ public class BuildMetadataFromXml { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Extracts the available formats from the provided DOM element. If it does not contain any |
|
|
|
|
|
* nationalPrefixFormattingRule, the one passed-in is retained. The nationalPrefix, |
|
|
|
|
|
* nationalPrefixFormattingRule and nationalPrefixOptionalWhenFormatting values are provided from |
|
|
|
|
|
* the parent (territory) element. |
|
|
|
|
|
|
|
|
* Extracts the available formats from the provided DOM element. If it does not contain any |
|
|
|
|
|
* nationalPrefixFormattingRule, the one passed-in is retained; similarly for |
|
|
|
|
|
* nationalPrefixOptionalWhenFormatting. The nationalPrefix, nationalPrefixFormattingRule and |
|
|
|
|
|
* nationalPrefixOptionalWhenFormatting values are provided from the parent (territory) element. |
|
|
*/ |
|
|
*/ |
|
|
// @VisibleForTesting |
|
|
// @VisibleForTesting |
|
|
static void loadAvailableFormats(PhoneMetadata metadata, |
|
|
static void loadAvailableFormats(PhoneMetadata metadata, |
|
|
@ -324,7 +324,6 @@ public class BuildMetadataFromXml { |
|
|
} else { |
|
|
} else { |
|
|
format.nationalPrefixFormattingRule = nationalPrefixFormattingRule; |
|
|
format.nationalPrefixFormattingRule = nationalPrefixFormattingRule; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (numberFormatElement.hasAttribute(NATIONAL_PREFIX_OPTIONAL_WHEN_FORMATTING)) { |
|
|
if (numberFormatElement.hasAttribute(NATIONAL_PREFIX_OPTIONAL_WHEN_FORMATTING)) { |
|
|
format.nationalPrefixOptionalWhenFormatting = |
|
|
format.nationalPrefixOptionalWhenFormatting = |
|
|
Boolean.valueOf(numberFormatElement.getAttribute( |
|
|
Boolean.valueOf(numberFormatElement.getAttribute( |
|
|
|