Sort automatic download wifi names ignoring case
When a user has many wifi networks it can be difficult to remember if a given network has upper- or lower-case.
This commit is contained in:
parent
0680dfb047
commit
50e71545f7
|
@ -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