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

Commit 221c92ff authored by Mats Fagerstrom's avatar Mats Fagerstrom Committed by Kamaljeet Maini
Browse files

PBAP Call Log download

Update to handle the case where a private phone number in the
downloaded call log is represented by a string of length 0.

Bug: 122954765
Test: Connect phone that has a 0 length phone number in call log

Change-Id: Ie2afc30848511d2a49e178bca4b3928de68e9f94
(cherry picked from commit a95a8d80687bbaf42434b7e62ef66be1a7773cbf)
parent 76fa07ec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -90,7 +90,8 @@ public class CallLogPullRequest extends PullRequest {
                values.put(CallLog.Calls.TYPE, type);
                values.put(Calls.PHONE_ACCOUNT_ID, mAccount.name);
                List<PhoneData> phones = vcard.getPhoneList();
                if (phones == null || phones.get(0).getNumber().equals(";")) {
                if (phones == null || phones.get(0).getNumber().equals(";")
                        || phones.get(0).getNumber().length() == 0) {
                    values.put(CallLog.Calls.NUMBER, "");
                } else {
                    String phoneNumber = phones.get(0).getNumber();