Merge "Get the resources associated with subid to support MSIM" into qt-dev
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 4a58d94..6f3e97a 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -5247,7 +5247,7 @@
*/
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 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);
}