From 8eef13b47268cec08074c80547e7e3800347843b Mon Sep 17 00:00:00 2001 From: Daisuke Miyakawa Date: Mon, 4 Oct 2010 07:59:34 -0700 Subject: Refrain warning when not appropriate. Do not merge Change-Id: I0066a3d0a2204cfc4beacb69aafccb35b9326bbb --- core/java/android/pim/vcard/VCardBuilder.java | 8 +++++--- 1 file 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); -- cgit v1.1