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
Merged-In: Ib00cfe3640b59db5f971c32741eed999131e67c0
Change-Id: Ib00cfe3640b59db5f971c32741eed999131e67c0
(cherry picked from commit ea6d2b1e1e)
This commit is contained in:
@@ -5224,7 +5224,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);
|
||||
}
|
||||
|
||||
@@ -5233,7 +5233,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user