Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapCallLogComposer.java +5 −6 Original line number Diff line number Diff line Loading @@ -152,7 +152,7 @@ public class BluetoothPbapCallLogComposer { } } public boolean createOneEntry() { public boolean createOneEntry(boolean vcardVer21) { if (mCursor == null || mCursor.isAfterLast()) { mErrorReason = FAILURE_REASON_NOT_INITIALIZED; return false; Loading @@ -160,7 +160,7 @@ public class BluetoothPbapCallLogComposer { final String vcard; try { vcard = createOneCallLogEntryInternal(); vcard = createOneCallLogEntryInternal(vcardVer21); } catch (OutOfMemoryError error) { Log.e(TAG, "OutOfMemoryError occured. Ignore the entry"); System.gc(); Loading @@ -184,10 +184,9 @@ public class BluetoothPbapCallLogComposer { return true; } private String createOneCallLogEntryInternal() { // We should not allow vCard composer to re-format phone numbers, since // some characters are (inappropriately) removed and devices do not work fine. final int vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC | private String createOneCallLogEntryInternal(boolean vcardVer21) { final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC : VCardConfig.VCARD_TYPE_V30_GENERIC) | VCardConfig.FLAG_REFRAIN_PHONE_NUMBER_FORMATTING; final VCardBuilder builder = new VCardBuilder(vcardType); String name = mCursor.getString(CALLER_NAME_COLUMN_INDEX); Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ public class BluetoothPbapVcardManager { BluetoothPbapObexServer.sIsAborted = false; break; } if (!composer.createOneEntry()) { if (!composer.createOneEntry(vcardType21)) { Log.e(TAG, "Failed to read a contact. Error reason: " + composer.getErrorReason()); return ResponseCodes.OBEX_HTTP_INTERNAL_ERROR; Loading Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapCallLogComposer.java +5 −6 Original line number Diff line number Diff line Loading @@ -152,7 +152,7 @@ public class BluetoothPbapCallLogComposer { } } public boolean createOneEntry() { public boolean createOneEntry(boolean vcardVer21) { if (mCursor == null || mCursor.isAfterLast()) { mErrorReason = FAILURE_REASON_NOT_INITIALIZED; return false; Loading @@ -160,7 +160,7 @@ public class BluetoothPbapCallLogComposer { final String vcard; try { vcard = createOneCallLogEntryInternal(); vcard = createOneCallLogEntryInternal(vcardVer21); } catch (OutOfMemoryError error) { Log.e(TAG, "OutOfMemoryError occured. Ignore the entry"); System.gc(); Loading @@ -184,10 +184,9 @@ public class BluetoothPbapCallLogComposer { return true; } private String createOneCallLogEntryInternal() { // We should not allow vCard composer to re-format phone numbers, since // some characters are (inappropriately) removed and devices do not work fine. final int vcardType = VCardConfig.VCARD_TYPE_V21_GENERIC | private String createOneCallLogEntryInternal(boolean vcardVer21) { final int vcardType = (vcardVer21 ? VCardConfig.VCARD_TYPE_V21_GENERIC : VCardConfig.VCARD_TYPE_V30_GENERIC) | VCardConfig.FLAG_REFRAIN_PHONE_NUMBER_FORMATTING; final VCardBuilder builder = new VCardBuilder(vcardType); String name = mCursor.getString(CALLER_NAME_COLUMN_INDEX); Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -479,7 +479,7 @@ public class BluetoothPbapVcardManager { BluetoothPbapObexServer.sIsAborted = false; break; } if (!composer.createOneEntry()) { if (!composer.createOneEntry(vcardType21)) { Log.e(TAG, "Failed to read a contact. Error reason: " + composer.getErrorReason()); return ResponseCodes.OBEX_HTTP_INTERNAL_ERROR; Loading