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

Commit 33a347aa authored by Gabriele M's avatar Gabriele M
Browse files

Allow to ignore presentation indicator of outgoing calls [2/3]

With some mobile network operators, the presentation indicator of
outgoing calls is always set to either "unknown" or "restricted".
As consequence, the dialed number doesn't show up in clear in the
call history. Allow to ignore the presentation indicator of outgoing
calls to never hide the dialed numbers.

Change-Id: Ifb5a11d3b46e22d7cdc502d447a55b307226ff71
parent 0f6a6304
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src/java) \
	$(call all-logtags-files-under, src/java)

LOCAL_JAVA_LIBRARIES := voip-common ims-common
LOCAL_STATIC_JAVA_LIBRARIES := org.cyanogenmod.platform.internal
LOCAL_REQUIRED_MODULES := telresources

ifneq ($(BOARD_RIL_CLASS),)
+8 −1
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ import com.android.internal.telephony.uicc.UiccCardApplication;
import com.android.internal.telephony.uicc.UiccController;
import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState;

import cyanogenmod.providers.CMSettings;

/**
 * {@hide}
 */
@@ -598,6 +600,11 @@ public class GsmConnection extends Connection {

        if (Phone.DEBUG_PHONE) log("--dssds----"+mCnapName);
        mCnapNamePresentation = dc.namePresentation;

        boolean connectedLineIdentification =
                CMSettings.System.getInt(mOwner.mPhone.getContext().getContentResolver(),
                        CMSettings.System.CONNECTED_LINE_IDENTIFICATION, 1) != 0;
        if (mIsIncoming || connectedLineIdentification)
            mNumberPresentation = dc.numberPresentation;

        if (newParent != mParent) {