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

Commit ff41e6db authored by Jinyoung Jeong's avatar Jinyoung Jeong Committed by Gerrit Code Review
Browse files

Merge "Fixed incorrect count logic"

parents 89d5725f 43ee7a97
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ public class RcsStats {
            for (RcsContactUceCapability capability : updatedCapList) {
                boolean rcsCap = false;
                boolean mmtelCap = false;
                boolean noCap = false;
                boolean noCap = true;
                List<RcsContactPresenceTuple> tupleList = capability.getCapabilityTuples();
                if (tupleList.isEmpty()) {
                    noCap = true;
@@ -617,16 +617,17 @@ public class RcsStats {
                    String serviceId = tuple.getServiceId();
                    if (RCS_SERVICE_ID_SET.contains(serviceId)) {
                        rcsCap = true;
                        noCap = false;
                    } else if (MMTEL_SERVICE_ID_SET.contains(serviceId)) {
                        if (serviceId.equals(RcsContactPresenceTuple.SERVICE_ID_CALL_COMPOSER)) {
                            if ("1.0".equals(tuple.getServiceVersion())) {
                                rcsCap = true;
                                noCap = false;
                                continue;
                            }
                        }
                        mmtelCap = true;
                    } else {
                        noCap = true;
                        noCap = false;
                    }
                }
                mRcsStats.onPresenceNotifyEvent(subId, "", true, rcsCap,