Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cece2cf authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Gerrit Code Review
Browse files

Merge "PBAPS: Enable contact search with full or part of given string"

parents 2f224e91 e6ac49ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
            }
        } else {
            if (searchValue != null) {
                compareValue = searchValue.trim();
                compareValue = searchValue.trim().toLowerCase();
            }
            for (int pos = listStartOffset; pos < listSize &&
                    itemsFound < requestSize; pos++) {
@@ -678,7 +678,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
                if (currentValue.contains(","))
                    currentValue = currentValue.substring(0, currentValue.lastIndexOf(','));

                if (searchValue.isEmpty() || ((currentValue.toLowerCase()).equals(compareValue.toLowerCase()))) {
                if (searchValue.isEmpty() || ((currentValue.toLowerCase()).startsWith(compareValue))) {
                    itemsFound++;
                    writeVCardEntry(pos, currentValue,result);
                }