no context leak

This commit is contained in:
Daniel Pollithy 2018-01-14 16:40:46 +01:00
parent 9ed229e7b4
commit ac81a74b51

View File

@ -23,7 +23,7 @@ public class ConnectTask extends AsyncTask<Context, Void, String> {
@Override
protected String doInBackground(Context... params) {
context = params[0];
Context context = params[0];
WifiManager wifiManager = (WifiManager) context.getSystemService(WIFI_SERVICE);
WifiConfiguration wifiConfig = new WifiConfiguration();