diff options
| author | Jaikumar Ganesh <jaikumar@google.com> | 2010-05-13 12:42:59 -0700 |
|---|---|---|
| committer | Jaikumar Ganesh <jaikumar@google.com> | 2010-05-13 12:42:59 -0700 |
| commit | fce9609a18ad6f98dc2c55815ae5099f35a34606 (patch) | |
| tree | 07424041a92bca77a6d3a91c35d7ab8eed5ef925 /core/java/android/pim | |
| parent | f6860f1979b30646e57d41c214b3a60e401abcd1 (diff) | |
| parent | 0de3cc9b5ee8947c87dcd3bc55d2b774d8479a64 (diff) | |
| download | frameworks_base-fce9609a18ad6f98dc2c55815ae5099f35a34606.zip frameworks_base-fce9609a18ad6f98dc2c55815ae5099f35a34606.tar.gz frameworks_base-fce9609a18ad6f98dc2c55815ae5099f35a34606.tar.bz2 | |
resolved conflicts for merge of 0de3cc9b to master
Change-Id: I9fcf892de6ebe90c6a4be19d02e3a009ddda89aa
Diffstat (limited to 'core/java/android/pim')
| -rw-r--r-- | core/java/android/pim/vcard/VCardConfig.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/core/java/android/pim/vcard/VCardConfig.java b/core/java/android/pim/vcard/VCardConfig.java index 6c25216..1a2d2210 100644 --- a/core/java/android/pim/vcard/VCardConfig.java +++ b/core/java/android/pim/vcard/VCardConfig.java @@ -251,6 +251,30 @@ public class VCardConfig { */ public static final int FLAG_TORELATE_NEST = 0x01000000; + /** + * <P> + * The flag indicating the vCard composer does touch nothing toward phone number Strings + * but leave it as is. + * </P> + * <P> + * The vCard specifications mention nothing toward phone numbers, while some devices + * do (wrongly, but with innevitable reasons). + * For example, there's a possibility Japanese mobile phones are expected to have + * just numbers, hypens, plus, etc. but not usual alphabets, while US mobile phones + * should get such characters. To make exported vCard simple for external parsers, + * we have used {@link PhoneNumberUtils#formatNumber(String)} during export, and + * removed unnecessary characters inside the number (e.g. "111-222-3333 (Miami)" + * becomes "111-222-3333"). + * Unfortunate side effect of that use was some control characters used in the other + * areas may be badly affected by the formatting. + * </P> + * <P> + * This flag disables that formatting, affecting both importer and exporter. + * If the user is aware of some side effects due to the implicit formatting, use this flag. + * </P> + */ + public static final int FLAG_REFRAIN_PHONE_NUMBER_FORMATTING = 0x02000000; + //// The followings are VCard types available from importer/exporter. //// /** @@ -476,4 +500,4 @@ public class VCardConfig { private VCardConfig() { } -}
\ No newline at end of file +} |
