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

Commit ec0a146f authored by Roshan Pius's avatar Roshan Pius
Browse files

Mark missed calls as read in calllog restore(3/3)

Query only for missed calls which are not already read when showing the
notifications for missed call at bootup.

BUG: 22908952
Change-Id: Ide09a6617b13808e3ffc7e9d8d4d2d880146dd25
parent 86b8e33e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -386,6 +386,7 @@ public class MissedCallNotifierImpl extends CallsManagerListenerBase implements
        StringBuilder where = new StringBuilder("type=");
        where.append(Calls.MISSED_TYPE);
        where.append(" AND new=1");
        where.append(" AND is_read=0");

        // start the query
        queryHandler.startQuery(0, null, Calls.CONTENT_URI, CALL_LOG_PROJECTION,