Sort saved networks using case insensitive order.
Bug: 36570745 Test: m RunSettingsRoboTests Change-Id: Ie2b2d6dc012429f3ac57f24db26720e67e0bac13
This commit is contained in:
@@ -101,7 +101,7 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment
|
||||
Collections.sort(accessPoints, new Comparator<AccessPoint>() {
|
||||
public int compare(AccessPoint ap1, AccessPoint ap2) {
|
||||
if (ap1.getConfigName() != null) {
|
||||
return ap1.getConfigName().compareTo(ap2.getConfigName());
|
||||
return ap1.getConfigName().compareToIgnoreCase(ap2.getConfigName());
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user