Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea6d2b1e authored by calvinpan's avatar calvinpan Committed by Calvin Pan
Browse files

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
parent 5f82f12c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
    }