Merge pull request #3319 from gaul/compare-to-ignore-case
Sort automatic download wifi names ignoring case
This commit is contained in:
commit
fd625650e6
|
@ -88,7 +88,7 @@ public class AutoDownloadPreferencesFragment extends PreferenceFragmentCompat {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Collections.sort(networks, (x, y) ->
|
Collections.sort(networks, (x, y) ->
|
||||||
blankIfNull(x.SSID).compareTo(blankIfNull(y.SSID)));
|
blankIfNull(x.SSID).compareToIgnoreCase(blankIfNull(y.SSID)));
|
||||||
selectedNetworks = new CheckBoxPreference[networks.size()];
|
selectedNetworks = new CheckBoxPreference[networks.size()];
|
||||||
List<String> prefValues = Arrays.asList(UserPreferences
|
List<String> prefValues = Arrays.asList(UserPreferences
|
||||||
.getAutodownloadSelectedNetworks());
|
.getAutodownloadSelectedNetworks());
|
||||||
|
|
Loading…
Reference in New Issue