Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java +1 −1 Original line number Diff line number Diff line Loading @@ -608,7 +608,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { itemsFound < requestSize; pos++) { currentValue = nameList.get(pos); if (D) Log.d(TAG, "currentValue=" + currentValue); if (currentValue.startsWith(compareValue)) { if (currentValue.equals(compareValue)) { itemsFound++; if (currentValue.contains(",")) currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); Loading android/app/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -294,6 +294,7 @@ public class BluetoothPbapVcardManager { public final ArrayList<String> getContactNamesByNumber(final String phoneNumber) { ArrayList<String> nameList = new ArrayList<String>(); ArrayList<String> tempNameList = new ArrayList<String>(); Cursor contactCursor = null; Uri uri = null; Loading @@ -318,7 +319,7 @@ public class BluetoothPbapVcardManager { name = mContext.getString(android.R.string.unknownName); } if (V) Log.v(TAG, "got name " + name + " by number " + phoneNumber + " @" + id); nameList.add(name + "," + id); tempNameList.add(name + "," + id); } } } catch (CursorWindowAllocationException e) { Loading @@ -329,6 +330,13 @@ public class BluetoothPbapVcardManager { contactCursor = null; } } int tempListSize = tempNameList.size(); for (int index = 0; index < tempListSize; index++) { String object = tempNameList.get(index); if (!nameList.contains(object)) nameList.add(object); } return nameList; } Loading Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapObexServer.java +1 −1 Original line number Diff line number Diff line Loading @@ -608,7 +608,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler { itemsFound < requestSize; pos++) { currentValue = nameList.get(pos); if (D) Log.d(TAG, "currentValue=" + currentValue); if (currentValue.startsWith(compareValue)) { if (currentValue.equals(compareValue)) { itemsFound++; if (currentValue.contains(",")) currentValue = currentValue.substring(0, currentValue.lastIndexOf(',')); Loading
android/app/src/com/android/bluetooth/pbap/BluetoothPbapVcardManager.java +9 −1 Original line number Diff line number Diff line Loading @@ -294,6 +294,7 @@ public class BluetoothPbapVcardManager { public final ArrayList<String> getContactNamesByNumber(final String phoneNumber) { ArrayList<String> nameList = new ArrayList<String>(); ArrayList<String> tempNameList = new ArrayList<String>(); Cursor contactCursor = null; Uri uri = null; Loading @@ -318,7 +319,7 @@ public class BluetoothPbapVcardManager { name = mContext.getString(android.R.string.unknownName); } if (V) Log.v(TAG, "got name " + name + " by number " + phoneNumber + " @" + id); nameList.add(name + "," + id); tempNameList.add(name + "," + id); } } } catch (CursorWindowAllocationException e) { Loading @@ -329,6 +330,13 @@ public class BluetoothPbapVcardManager { contactCursor = null; } } int tempListSize = tempNameList.size(); for (int index = 0; index < tempListSize; index++) { String object = tempNameList.get(index); if (!nameList.contains(object)) nameList.add(object); } return nameList; } Loading