From 8b791d4f581f31acf69f1297952c24aa39f01855 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Fri, 13 Nov 2009 10:41:23 -0800 Subject: [PATCH] Don't send default phone number for 0.vcf card. This prevents an entry "My name" with "000000" in the car kit contacts. We now send only the name and the version in the vcf. Ideally, we could like to send an empty vcard, but we would need to test with various car kits with that works well. Original Change by: Lixin Yue Bug: 2247067 Dr No: Eastham --- src/com/android/bluetooth/pbap/BluetoothPbapService.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/com/android/bluetooth/pbap/BluetoothPbapService.java b/src/com/android/bluetooth/pbap/BluetoothPbapService.java index 5842394e..26ac61a9 100644 --- a/src/com/android/bluetooth/pbap/BluetoothPbapService.java +++ b/src/com/android/bluetooth/pbap/BluetoothPbapService.java @@ -421,10 +421,6 @@ public class BluetoothPbapService extends Service { TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); if (tm != null) { sLocalPhoneNum = tm.getLine1Number(); - if (TextUtils.isEmpty(sLocalPhoneNum)) { - // Default number (000000) should be ok - sLocalPhoneNum = this.getString(R.string.defaultnumber); - } sLocalPhoneName = tm.getLine1AlphaTag(); if (TextUtils.isEmpty(sLocalPhoneName)) { sLocalPhoneName = this.getString(R.string.localPhoneName); -- 2.11.0