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

Commit b2318153 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 b1a8579f
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.os.PersistableBundle;
import android.os.PowerManager;
import android.os.Registrant;
import android.os.SystemClock;
import android.provider.Settings;
import android.telephony.CarrierConfigManager;
import android.telephony.DisconnectCause;
import android.telephony.Rlog;
@@ -774,7 +775,14 @@ public class GsmCdmaConnection extends Connection {

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

        final Phone phone = mOwner.getPhone();
        boolean connectedLineIdentification = Settings.Global.getInt(
                phone.getContext().getContentResolver(),
                Settings.Global.CONNECTED_LINE_IDENTIFICATION + phone.getSubId(), 1) != 0;
        if (mIsIncoming || connectedLineIdentification) {
            mNumberPresentation = dc.numberPresentation;
        }

        if (newParent != mParent) {
            if (mParent != null) {