Merge "Ignore case on apn type strings."
This commit is contained in:
committed by
Android (Google) Code Review
commit
140d0158c4
@@ -181,9 +181,10 @@ public class ApnSetting {
|
||||
public boolean canHandleType(String type) {
|
||||
for (String t : types) {
|
||||
// DEFAULT handles all, and HIPRI is handled by DEFAULT
|
||||
if (t.equals(type) || t.equals(Phone.APN_TYPE_ALL) ||
|
||||
(t.equals(Phone.APN_TYPE_DEFAULT) &&
|
||||
type.equals(Phone.APN_TYPE_HIPRI))) {
|
||||
if (t.equalsIgnoreCase(type) ||
|
||||
t.equalsIgnoreCase(Phone.APN_TYPE_ALL) ||
|
||||
(t.equalsIgnoreCase(Phone.APN_TYPE_DEFAULT) &&
|
||||
type.equalsIgnoreCase(Phone.APN_TYPE_HIPRI))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user