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

Commit a7d293c9 authored by Suresh Koleti's avatar Suresh Koleti Committed by Ravi Paluri
Browse files

IMS: Fix add participent and upgrade/downgrade button visibility

Fix add participent and upgrade/downgrade button visibility

Change-Id: Ie31896787e2c7e18147860e4714e8ae874a486d0
parent 536bc2bf
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -182,6 +182,18 @@ public final class Call {
         */
        public static final int CAPABILITY_GENERIC_CONFERENCE = 0x00004000;

        /** Add participant in an active or conference call option
         * @hide
         */
        public static final int ADD_PARTICIPANT = 0x00008000;

        /**
         * Call type can be modified for IMS call
         * @hide
         */
        public static final int CALL_TYPE_MODIFIABLE = 0x00020000;


        private final Uri mHandle;
        private final int mHandlePresentation;
        private final String mCallerDisplayName;
@@ -265,6 +277,12 @@ public final class Call {
            if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) {
                builder.append(" CAPABILITY_GENERIC_CONFERENCE");
            }
            if (can(capabilities, CALL_TYPE_MODIFIABLE)) {
                builder.append(" CALL_TYPE_MODIFIABLE");
            }
            if (can(capabilities, ADD_PARTICIPANT)) {
                builder.append(" ADD_PARTICIPANT");
            }
            builder.append("]");
            return builder.toString();
        }
+19 −0
Original line number Diff line number Diff line
@@ -174,6 +174,19 @@ public abstract class Connection implements IConferenceable {
     */
    public static final int CAPABILITY_GENERIC_CONFERENCE = 0x00004000;


    /**
     * Add participant in an active or conference call option
     * @hide
     */
    public static final int ADD_PARTICIPANT = 0x00008000;

    /**
     * Call type can be modified for IMS call
     * @hide
     */
    public static final int CALL_TYPE_MODIFIABLE = 0x00020000;

    // Flag controlling whether PII is emitted into the logs
    private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG);

@@ -260,6 +273,12 @@ public abstract class Connection implements IConferenceable {
        if (can(capabilities, CAPABILITY_GENERIC_CONFERENCE)) {
            builder.append(" CAPABILITY_GENERIC_CONFERENCE");
        }
        if (can(capabilities, CALL_TYPE_MODIFIABLE)) {
            builder.append(" CALL_TYPE_MODIFIABLE");
        }
        if (can(capabilities, ADD_PARTICIPANT)) {
            builder.append(" ADD_PARTICIPANT");
        }
        builder.append("]");
        return builder.toString();
    }