From 50e71545f7afac961553211f70bd1d1407e069a8 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Mon, 12 Aug 2019 21:25:38 -0700 Subject: [PATCH] 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. --- .../fragment/preferences/AutoDownloadPreferencesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/AutoDownloadPreferencesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/AutoDownloadPreferencesFragment.java index 6cba798ba..a04615a00 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/AutoDownloadPreferencesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/AutoDownloadPreferencesFragment.java @@ -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 prefValues = Arrays.asList(UserPreferences .getAutodownloadSelectedNetworks());