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

Commit fe2fd1ab authored by Qiang Chen's avatar Qiang Chen Committed by Steve Kondik
Browse files

Update for IP call prefix

Get IPCALL_PREFIX number from database instead of string IP_CALL_PREFIX.

Change-Id: Ic1a214a4cc5dee92081f252b5fd00605f9c3606b
parent ed63f2f6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.net.Uri;
import android.os.SystemProperties;
import android.provider.Contacts;
import android.provider.ContactsContract;
import android.provider.Settings;
import android.text.Editable;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
@@ -154,7 +155,11 @@ public class PhoneNumberUtils
        boolean isIPPrefix = intent.getBooleanExtra(IP_CALL, false);
        if (isIPPrefix && number != null
                && subscription < MSimTelephonyManager.getDefault().getPhoneCount()) {
            return IP_CALL_PREFIX + subscription + number;
            String IPPrefix = Settings.System.getString(context.getContentResolver(),
                    IP_CALL_PREFIX + (subscription + 1));
            if (!TextUtils.isEmpty(IPPrefix)) {
                return IPPrefix + number;
            }
        }
        return number;
    }