Fixed lint warning

Workaround for Android < N bug, although Google calls it differently
This commit is contained in:
M66B 2016-12-21 16:26:59 +01:00
parent bdcb64e714
commit 8d9dc22239
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
else
pref_wifi_homes.setTitle(getString(R.string.setting_wifi_home, "-"));
WifiManager wm = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiManager wm = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
List<CharSequence> listSSID = new ArrayList<>();
List<WifiConfiguration> configs = wm.getConfiguredNetworks();
if (configs != null)