Merge "Clean cherry-pick 'Fix getApnTypesBitmaskFromString in ApnSetting'"
am: 56dedc8fe8
Change-Id: I5be733e8edf4a07840b1d87ab295be606fbbadbb
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user