diff options
-rw-r--r-- | src/com/android/mms/service/MmsRequest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/mms/service/MmsRequest.java b/src/com/android/mms/service/MmsRequest.java index ec8b334..8363686 100644 --- a/src/com/android/mms/service/MmsRequest.java +++ b/src/com/android/mms/service/MmsRequest.java @@ -106,8 +106,9 @@ public abstract class MmsRequest { mMmsConfig = config; // TODO: Make MmsConfigManager authoritative for user agent and don't consult // TelephonyManager. - final TelephonyManager telephonyManager = - (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); + final TelephonyManager telephonyManager = ((TelephonyManager) mContext + .getSystemService(Context.TELEPHONY_SERVICE)) + .createForSubscriptionId(mSubId); final String userAgent = telephonyManager.getMmsUserAgent(); if (!TextUtils.isEmpty(userAgent)) { config.putString(SmsManager.MMS_CONFIG_USER_AGENT, userAgent); |