Loading src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +22 −15 Original line number Diff line number Diff line Loading @@ -759,7 +759,7 @@ public class BluetoothPbapVcardManager { NOTE( 17, "NOTE", false, false), URL( 20, "URL", false, false), NICKNAME( 23, "NICKNAME", false, true), DATETIME( 28, "DATETIME", false, true); DATETIME( 28, "X-IRMC-CALL-DATETIME", false, false); public final int pos; public final String prop; Loading Loading @@ -817,12 +817,19 @@ public class BluetoothPbapVcardManager { // Since PBAP does not have filter bits for IM and SIP, // exclude them by default. Easiest way is to exclude all // X- fields.... if (currentProp.startsWith("X-")) filteredIn = false; // X- fields, except date time.... if (currentProp.startsWith("X-")) { filteredIn = false; if (currentProp.equals("X-IRMC-CALL-DATETIME")) { filteredIn = true; } } } // Build filtered vCard if (filteredIn) filteredVCard.append(line + SEPARATOR); if (filteredIn) { filteredVCard.append(line + SEPARATOR); } } return filteredVCard.toString(); Loading Loading
src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +22 −15 Original line number Diff line number Diff line Loading @@ -759,7 +759,7 @@ public class BluetoothPbapVcardManager { NOTE( 17, "NOTE", false, false), URL( 20, "URL", false, false), NICKNAME( 23, "NICKNAME", false, true), DATETIME( 28, "DATETIME", false, true); DATETIME( 28, "X-IRMC-CALL-DATETIME", false, false); public final int pos; public final String prop; Loading Loading @@ -817,12 +817,19 @@ public class BluetoothPbapVcardManager { // Since PBAP does not have filter bits for IM and SIP, // exclude them by default. Easiest way is to exclude all // X- fields.... if (currentProp.startsWith("X-")) filteredIn = false; // X- fields, except date time.... if (currentProp.startsWith("X-")) { filteredIn = false; if (currentProp.equals("X-IRMC-CALL-DATETIME")) { filteredIn = true; } } } // Build filtered vCard if (filteredIn) filteredVCard.append(line + SEPARATOR); if (filteredIn) { filteredVCard.append(line + SEPARATOR); } } return filteredVCard.toString(); Loading