diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2018-01-09 20:20:32 +0100 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2018-01-09 20:20:32 +0100 |
commit | df131cdd0d3688766298554cffdb6890777c60d5 (patch) | |
tree | 7b8d0a023c59dee3f86bea1bb65640678a57d5b3 /app/src/main | |
parent | 7e0a958f8aa762d86b3dac33d1994898358481ad (diff) | |
download | AntennaPod-df131cdd0d3688766298554cffdb6890777c60d5.zip |
Replace with lambda
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index 1ac9de989..a7e7e8714 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -771,12 +771,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc Log.e(TAG, "Couldn't get list of configure Wi-Fi networks"); return; } - Collections.sort(networks, new Comparator<WifiConfiguration>() { - @Override - public int compare(WifiConfiguration x, WifiConfiguration y) { - return x.SSID.compareTo(y.SSID); - } - }); + Collections.sort(networks, (x, y) -> x.SSID.compareTo(y.SSID)); selectedNetworks = new CheckBoxPreference[networks.size()]; List<String> prefValues = Arrays.asList(UserPreferences .getAutodownloadSelectedNetworks()); |