Skip to content

Commit

Permalink
new Constructor for disabling wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
jflavio11 authored Mar 22, 2017
1 parent e2760b7 commit e53b1fb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ public class WifiConnector {
* String value for current connected Wi-Fi network
*/
public String currentWifiBSSID = null;

public WifiConnector(Context context, boolean enableWifi) {
this.context = context;
this.wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
if(enableWifi){
enableWifi();
}
}

public WifiConnector(Context context) {
this.context = context;
Expand Down

0 comments on commit e53b1fb

Please sign in to comment.