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

Commit 3cb24bd3 authored by James.cf Lin's avatar James.cf Lin Committed by Automerger Merge Worker
Browse files

Fix the duplex information not being written in the pidf body. am: 9ae24036

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

Change-Id: Ib6893c966bcb863625cfc053138ad8f8d5303c05
parents f183b02d 9ae24036
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -172,14 +172,14 @@ public class PidfParserUtils {
        // Duplex element
        List<String> supportedDuplexModes = serviceCaps.getSupportedDuplexModes();
        List<String> UnsupportedDuplexModes = serviceCaps.getUnsupportedDuplexModes();
        if (supportedDuplexModes != null && !supportedDuplexModes.isEmpty() &&
                UnsupportedDuplexModes != null && !UnsupportedDuplexModes.isEmpty()) {
        if ((supportedDuplexModes != null && !supportedDuplexModes.isEmpty()) ||
                (UnsupportedDuplexModes != null && !UnsupportedDuplexModes.isEmpty())) {
            Duplex duplex = new Duplex();
            if (!supportedDuplexModes.isEmpty()) {
                duplex.addSupportedType(supportedDuplexModes.get(0));
            }
            if (!UnsupportedDuplexModes.isEmpty()) {
                duplex.addSupportedType(UnsupportedDuplexModes.get(0));
                duplex.addNotSupportedType(UnsupportedDuplexModes.get(0));
            }
            servCapsElement.addElement(duplex);
        }