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

Commit a21caea1 authored by Shareef Ali's avatar Shareef Ali
Browse files

Telephony: check if the provisioning apn is actually empty before

checking if they are equal. fixes cases where the stubbed apn
(empty) equal to the the empty provisioning apn.

Change-Id: I6ca4fd172e2ecc64ca7a2c3fbca5327be61e7b5c
parent 478dc367
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.internal.telephony.dataconnection;
import android.app.PendingIntent;
import android.content.Context;
import android.telephony.Rlog;
import android.text.TextUtils;

import com.android.internal.R;
import com.android.internal.telephony.DctConstants;
@@ -222,6 +223,9 @@ public class ApnContext {
    public boolean isProvisioningApn() {
        String provisioningApn = mContext.getResources()
                .getString(R.string.mobile_provisioning_apn);
        if (TextUtils.isEmpty(provisioningApn)) {
            return false;
        }
        if (mApnSetting != null) {
            return (mApnSetting.apn.equals(provisioningApn));
        } else {