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

Commit e01c5446 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix getApnTypesBitmaskFromString in ApnSetting"

parents a63836eb 40d0d6dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1206,7 +1206,8 @@ public class ApnSetting implements Parcelable {

    /** @hide */
    public static int getMvnoTypeIntFromString(String mvnoType) {
        Integer mvnoTypeInt = MVNO_TYPE_STRING_MAP.get(mvnoType);
        String mvnoTypeString = TextUtils.isEmpty(mvnoType) ? mvnoType : mvnoType.toLowerCase();
        Integer mvnoTypeInt = MVNO_TYPE_STRING_MAP.get(mvnoTypeString);
        return  mvnoTypeInt == null ? UNSPECIFIED_INT : mvnoTypeInt;
    }