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

Commit 5d1ab6a1 authored by Patrick Lower's avatar Patrick Lower
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 158e9fd7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -172,6 +172,10 @@ public class DcTracker extends DcTrackerBase {
    private boolean mDeregistrationAlarmState = false;
    private PendingIntent mImsDeregistrationDelayIntent = null;

    /** 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(PhoneBase p) {
        super(p);
@@ -2937,6 +2941,8 @@ public class DcTracker extends DcTrackerBase {
            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;
        }