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
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);