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

Commit 91281aee authored by Hemant Gupta's avatar Hemant Gupta Committed by Android Git Automerger
Browse files

am 1af30ddd: PBAP: Change string search comparison from NULL to empty

* commit '1af30ddd':
  PBAP: Change string search comparison from NULL to empty
parents ee9fbb69 1af30ddd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ public class BluetoothPbapObexServer extends ServerRequestHandler {
                if (currentValue.contains(","))
                    currentValue = currentValue.substring(0, currentValue.lastIndexOf(','));

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