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

Commit 366cdaf8 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Android (Google) Code Review
Browse files

Merge "Extract hostname if mMmsProxyAddress starts with http." into tm-qpr-dev

parents e58a36c1 c4ad2c4f
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2190,11 +2190,10 @@ public class ApnSetting implements Parcelable {
            }
            if ((mApnTypeBitmask & TYPE_MMS) != 0 && !TextUtils.isEmpty(mMmsProxyAddress)
                    && mMmsProxyAddress.startsWith("http")) {
                if (Build.IS_DEBUGGABLE) {
                    throw new IllegalArgumentException("mms proxy(" +  mMmsProxyAddress
                Log.wtf(LOG_TAG,"mms proxy(" + mMmsProxyAddress
                        + ") should be a hostname, not a url");
                }
                return null;
                Uri mMmsProxyAddressUri = Uri.parse(mMmsProxyAddress);
                mMmsProxyAddress = mMmsProxyAddressUri.getHost();
            }
            return new ApnSetting(this);
        }