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

Commit 3197ce2c authored by Patrick Lower's avatar Patrick Lower Committed by Paul Keith
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 dc96f18d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -582,6 +582,10 @@ public class DcTracker extends Handler {

    private final int mTransportType;

    /** 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, int transportType) {
        super();
@@ -4052,6 +4056,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;
        }