<!-- string for "unknown device" -->
<string name="unknown_device">Unknown device</string>
+ <!-- string for "unknown" phone number" -->
+ <string name="unknownNumber">Unknown</string>
+
<!-- string for "the title of airplane mode error" -->
<string name="airplane_error_title">Airplane mode</string>
<!-- string for "error message in airplane mode" -->
*/
package com.android.bluetooth.pbap;
+import com.android.bluetooth.R;
+
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
builder.appendLine(VCardConstants.PROPERTY_FN, name, needCharset, false);
builder.appendLine(VCardConstants.PROPERTY_N, name, needCharset, false);
- final String number = mCursor.getString(NUMBER_COLUMN_INDEX);
+ String number = mCursor.getString(NUMBER_COLUMN_INDEX);
+ if (number.equals("-1")) {
+ number = mContext.getString(R.string.unknownNumber);
+ }
final int type = mCursor.getInt(CALLER_NUMBERTYPE_COLUMN_INDEX);
String label = mCursor.getString(CALLER_NUMBERLABEL_COLUMN_INDEX);
if (TextUtils.isEmpty(label)) {