summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/java/android/pim/vcard/VCardBuilder.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/pim/vcard/VCardBuilder.java b/core/java/android/pim/vcard/VCardBuilder.java
index b2007f2..58f6ebe 100644
--- a/core/java/android/pim/vcard/VCardBuilder.java
+++ b/core/java/android/pim/vcard/VCardBuilder.java
@@ -133,9 +133,11 @@ public class VCardBuilder {
public VCardBuilder(final int vcardType, String charset) {
mVCardType = vcardType;
- Log.w(LOG_TAG,
- "Should not use vCard 4.0 when building vCard. " +
- "It is not officially published yet.");
+ if (VCardConfig.isVersion40(vcardType)) {
+ Log.w(LOG_TAG,
+ "Should not use vCard 4.0 when building vCard. " +
+ "It is not officially published yet.");
+ }
mIsV30OrV40 = VCardConfig.isVersion30(vcardType) || VCardConfig.isVersion40(vcardType);
mShouldUseQuotedPrintable = VCardConfig.shouldUseQuotedPrintable(vcardType);