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

Commit d6a085be authored by kenshin's avatar kenshin
Browse files

fix Caller name disp not sticking for missed calls

The name is shown in the notification but does not
stick in the case of missed calls. One needs to answer
at least once for it to stick, this fixes it.

Change-Id: Id436855a648c6c699a5b64cf1d4d45ffdb72c93f
parent fec67ce3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -219,8 +219,9 @@ public class ContactInfoHelper {

        // The "contactNumber" is a regular phone number, so use the CallLog table.
        Uri uri = Uri.withAppendedPath(CallLog.Calls.CONTENT_FILTER_URI, Uri.encode(contactNumber));
        //if we ought to find something it would be in incmoning calls
        String selectionClause = " " + CallLog.Calls.TYPE + " = " + CallLog.Calls.INCOMING_TYPE;
        //if we ought to find something it would be in incmoning/missed calls
        String selectionClause = " " + CallLog.Calls.TYPE + " = " + CallLog.Calls.INCOMING_TYPE +
                                 " OR " + CallLog.Calls.TYPE + " = " + CallLog.Calls.MISSED_TYPE;
        Cursor c = mContext.getContentResolver().query(
                uri,
                CallLogQuery._PROJECTION,