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

Commit c1f2724b authored by Jay Shrauner's avatar Jay Shrauner Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in getPhoneType/getEmailType" into ub-contactsdialer-a-dev

parents ab739697 26d51ed4
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -545,11 +545,11 @@ public class ValuesDelta implements Parcelable {
        return getAsString(ContactsContract.CommonDataKinds.Phone.NORMALIZED_NUMBER);
    }

    public boolean phoneHasType() {
        return containsKey(ContactsContract.CommonDataKinds.Phone.TYPE);
    public boolean hasPhoneType() {
        return getPhoneType() != null;
    }

    public int getPhoneType() {
    public Integer getPhoneType() {
        return getAsInteger(ContactsContract.CommonDataKinds.Phone.TYPE);
    }

@@ -561,11 +561,11 @@ public class ValuesDelta implements Parcelable {
        return getAsString(ContactsContract.CommonDataKinds.Email.DATA);
    }

    public boolean emailHasType() {
        return containsKey(ContactsContract.CommonDataKinds.Email.TYPE);
    public boolean hasEmailType() {
        return getEmailType() != null;
    }

    public int getEmailType() {
    public Integer getEmailType() {
        return getAsInteger(ContactsContract.CommonDataKinds.Email.TYPE);
    }