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:
Andrew Gaul 2019-08-12 21:25:38 -07:00
parent 0680dfb047
commit 50e71545f7
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class AutoDownloadPreferencesFragment extends PreferenceFragmentCompat {
return;
}
Collections.sort(networks, (x, y) ->
blankIfNull(x.SSID).compareTo(blankIfNull(y.SSID)));
blankIfNull(x.SSID).compareToIgnoreCase(blankIfNull(y.SSID)));
selectedNetworks = new CheckBoxPreference[networks.size()];
List<String> prefValues = Arrays.asList(UserPreferences
.getAutodownloadSelectedNetworks());