Get the resources associated with subid to support MSIM

To avoid AP get the incorrect mms_user_agent and mms_user_agent_profile_url
in the MSIM device, so get the resource with subscription.

Bug: 131296413
Test: Build pass
Change-Id: Ib00cfe3640b59db5f971c32741eed999131e67c0
This commit is contained in:
calvinpan
2019-04-25 16:18:36 +08:00
committed by Calvin Pan
parent 5f82f12cdb
commit ea6d2b1e1e

View File

@@ -5248,7 +5248,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);
}
@@ -5257,7 +5257,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);
}