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

Commit 6a306bfe authored by Pooja Jain's avatar Pooja Jain Committed by Gerrit - the friendly Code Review server
Browse files

IMS: Update MISSED_IMS_TYPE and MISSED_WIFI_TYPE calls in DB

Need to store missed calls of Ims type also in DB as currently,
only CS missed calls are stored.

Change-Id: I3020d675bec3266da7d91d303cb9f8858a99bcbb
CRs-Fixed: 1063174
parent fbaad494
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -203,6 +203,23 @@ public class CallLog {
         * @hide
         */
        public static final int ANSWERED_EXTERNALLY_TYPE = 7;
        /** Call log type for missed IMS calls. */
        private static final int MISSED_IMS_TYPE = 10;
        /**
         * Call log type for incoming WiFi calls.
         * @hide
         */
        public static final int INCOMING_WIFI_TYPE = 20;
        /**
         * Call log type for outgoing WiFi calls.
         * @hide
         */
        public static final int OUTGOING_WIFI_TYPE = 21;
        /**
         * Call log type for missed WiFi calls.
         * @hide
         */
        public static final int MISSED_WIFI_TYPE = 22;

        /**
         * Bit-mask describing features of the call (e.g. video).
@@ -648,7 +665,8 @@ public class CallLog {
            values.put(NEW, Integer.valueOf(1));
            values.put(ADD_FOR_ALL_USERS, addForAllUsers ? 1 : 0);

            if (callType == MISSED_TYPE) {
            if (callType == MISSED_TYPE || callType == MISSED_IMS_TYPE
                    || callType == MISSED_WIFI_TYPE) {
                values.put(IS_READ, Integer.valueOf(is_read ? 1 : 0));
            }