diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2017-10-06 11:12:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 11:12:56 +0200 |
commit | 26cdef137825689d929f5a4fb55c09efa352823d (patch) | |
tree | 438ea0f4ba628930e28ca394fcc2f59c161f316f | |
parent | 77ee4558e718da5e86edf4ff34507e590c9b0e15 (diff) | |
parent | ba689273a6e38ab58512c6caf4f3d1027473003f (diff) | |
download | AntennaPod-26cdef137825689d929f5a4fb55c09efa352823d.zip |
Merge pull request #2433 from drabux/fix_wifi_service_mem_leak
fix wifi service mem leak
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java | 2 |
1 files changed, 1 insertions, 1 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 7777af450..2ca7dd029 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -759,7 +759,7 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc clearAutodownloadSelectedNetworsPreference(); } // get configured networks - WifiManager wifiservice = (WifiManager) activity.getSystemService(Context.WIFI_SERVICE); + WifiManager wifiservice = (WifiManager) activity.getApplicationContext().getSystemService(Context.WIFI_SERVICE); List<WifiConfiguration> networks = wifiservice.getConfiguredNetworks(); if (networks != null) { |