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

Commit 185db00c authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Steve Kondik
Browse files

IMS: Clean up Conference URI system property.

Remove system property "persist.dbg.ims_volte_enable".
Add platform configuration flag and user's enhanced 4G
LTE setting to decide IMS capability.

Change-Id: I1ee4dfb8e73ae7bf72a3daafef6957736a560606
CRs-Fixed: 727689
parent f38437e1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,7 +27,9 @@ LOCAL_AAPT_FLAGS := \
    --extra-packages com.android.contacts.common \
    --extra-packages com.android.phone.common

LOCAL_JAVA_LIBRARIES := telephony-common
LOCAL_JAVA_LIBRARIES := telephony-common \
                        ims-common

LOCAL_STATIC_JAVA_LIBRARIES := \
    com.android.services.telephony.common \
    com.android.vcard \
+5 −6
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ import com.android.dialer.widget.SearchEditTextLayout.OnBackButtonClickedListene
import com.android.dialerbind.DatabaseHelperManager;
import com.android.incallui.CallCardFragment;
import com.android.phone.common.animation.AnimUtils;
import com.android.ims.ImsManager;
import com.android.internal.telephony.TelephonyProperties;
import com.android.phone.common.animation.AnimationListenerAdapter;

@@ -537,11 +538,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        startActivity(intent);
    }

    public static boolean isCallOnImsEnabled() {
        return (SystemProperties.getBoolean(
                TelephonyProperties.PROPERTY_DBG_IMS_VOLTE_ENABLE, false));
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
@@ -1099,8 +1095,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O

    @Override
    public void setConferenceDialButtonVisibility(boolean enabled) {
        boolean imsUseEnabled =
                ImsManager.isEnhanced4gLteModeSettingEnabledByPlatform(this) &&
                ImsManager.isEnhanced4gLteModeSettingEnabledByUser(this);
        if(mConferenceDialButton != null) {
            mConferenceDialButton.setVisibility(enabled && isCallOnImsEnabled() ?
            mConferenceDialButton.setVisibility((enabled && imsUseEnabled) ?
                    View.VISIBLE : View.GONE);
        }
    }