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

Commit 72af10fe authored by Hyunho's avatar Hyunho Committed by Automerger Merge Worker
Browse files

Fixed incorrect count logic am: 020211c4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/16367025

Change-Id: Ica5911fdc9ae839d7fe6da0cf879698c5a996b42
parents 527b754a 020211c4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -603,7 +603,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;
@@ -615,16 +615,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,