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

Commit 5b4b443c authored by Sungcheol Ahn's avatar Sungcheol Ahn Committed by Automerger Merge Worker
Browse files

Fixed to update the Capability Info if any change in Rcs Feature Tags during...

Fixed to update the Capability Info if any change in Rcs Feature Tags during Ims Mmtel alive. am: ac281856

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ims/+/2439793



Change-Id: I11c1066a70bdfa1ee2e1ad985f43b423bb104d8c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f097bfbe ac281856
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -244,6 +244,9 @@ public class DeviceCapabilityInfo {
            mRcsRegistered = false;
            changed = true;
        }

        mLastRegistrationFeatureTags = Collections.emptySet();
        updateRegistration(mLastRegistrationFeatureTags);
        mRcsNetworkRegType = AccessNetworkConstants.TRANSPORT_TYPE_INVALID;
        return changed;
    }
+5 −0
Original line number Diff line number Diff line
@@ -157,6 +157,11 @@ public class PublishServiceDescTrackerTest {
                FeatureTags.FEATURE_TAG_LARGE_MODE);
        t1.updateImsRegistration(imsReg);
        assertEquals(expectedSet, t1.copyRegistrationCapabilities());

        // delete the feature tags for Unregistered
        expectedSet = new ArraySet<>();
        t1.updateImsRegistration(Collections.emptySet());
        assertEquals(expectedSet, t1.copyRegistrationCapabilities());
    }

    @SmallTest