Merge "Get the resources associated with subid to support MSIM" into qt-dev

This commit is contained in:
Calvin Pan
2019-05-23 13:15:31 +00:00
committed by Android (Google) Code Review

View File

@@ -5247,7 +5247,7 @@ public class TelephonyManager {
*/
public String getMmsUserAgent() {
if (mContext == null) return null;
return mContext.getResources().getString(
return SubscriptionManager.getResourcesForSubId(mContext, getSubId()).getString(
com.android.internal.R.string.config_mms_user_agent);
}
@@ -5256,7 +5256,7 @@ public class TelephonyManager {
*/
public String getMmsUAProfUrl() {
if (mContext == null) return null;
return mContext.getResources().getString(
return SubscriptionManager.getResourcesForSubId(mContext, getSubId()).getString(
com.android.internal.R.string.config_mms_user_agent_profile_url);
}