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

Commit bac00c45 authored by Matthew Xie's avatar Matthew Xie Committed by Gerrit Code Review
Browse files

Merge "MAP: Set Empty name or address for unknown values in GetMessageListing."

parents abf05dfe 4f8f4b26
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -485,7 +485,7 @@ public class BluetoothMapContent {
    private void setRecipientAddressing(BluetoothMapMessageListingElement e, Cursor c,
        FilterInfo fi, BluetoothMapAppParams ap) {
        if ((ap.getParameterMask() & MASK_RECIPIENT_ADDRESSING) != 0) {
            String address = null;
            String address = "";
            if (fi.msgType == FilterInfo.TYPE_SMS) {
                int msgType = c.getInt(c.getColumnIndex(Sms.TYPE));
                if (msgType == 1) {
@@ -505,7 +505,7 @@ public class BluetoothMapContent {
    private void setRecipientName(BluetoothMapMessageListingElement e, Cursor c,
        FilterInfo fi, BluetoothMapAppParams ap) {
        if ((ap.getParameterMask() & MASK_RECIPIENT_NAME) != 0) {
            String name = null;
            String name = "";
            if (fi.msgType == FilterInfo.TYPE_SMS) {
                int msgType = c.getInt(c.getColumnIndex(Sms.TYPE));
                if (msgType != 1) {
@@ -547,7 +547,7 @@ public class BluetoothMapContent {
    private void setSenderName(BluetoothMapMessageListingElement e, Cursor c,
        FilterInfo fi, BluetoothMapAppParams ap) {
        if ((ap.getParameterMask() & MASK_SENDER_NAME) != 0) {
            String name = null;
            String name = "";
            if (fi.msgType == FilterInfo.TYPE_SMS) {
                int msgType = c.getInt(c.getColumnIndex(Sms.TYPE));
                if (msgType == 1) {
@@ -677,7 +677,7 @@ public class BluetoothMapContent {
    }

    private String getContactNameFromPhone(String phone) {
        String name = null;
        String name = "";

        Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
            Uri.encode(phone));