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

Commit 548a72d1 authored by Patrick Lower's avatar Patrick Lower Committed by Arne Coucheron
Browse files

MMS: Update apnProfileID for MMS only apn.

Based on system property (ro.telephony.mms_data_profile) set at device level

Change-Id: I6b4ba90dfc5272e3e81330d479b9347bebfc177f
parent 64e97201
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -589,6 +589,10 @@ public class DcTracker extends Handler {

    public boolean mImsRegistrationState = false;

    /** MMS Data Profile Device Override */
    private static final int MMS_DATA_PROFILE = SystemProperties.getInt(
            "ro.telephony.mms_data_profile", RILConstants.DATA_PROFILE_DEFAULT);

    //***** Constructor
    public DcTracker(Phone phone) {
        super();
@@ -4024,6 +4028,8 @@ public class DcTracker extends Handler {
            return RILConstants.DATA_PROFILE_DEFAULT; // DEFAULT for now
        } else if (TextUtils.equals(apnType, PhoneConstants.APN_TYPE_DUN)) {
            return RILConstants.DATA_PROFILE_TETHERED;
        } else if (TextUtils.equals(apnType, PhoneConstants.APN_TYPE_MMS)) {
            return MMS_DATA_PROFILE;
        } else {
            return RILConstants.DATA_PROFILE_DEFAULT;
        }