Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ORIGINAL CODE
- if(wifiManager.isWifiEnabled()){
- wifiManager.setWifiEnabled(false);
- }else{
- wifiManager.setWifiEnabled(true);
- }
- // WHAT THIS SHOULD BE
- wifiManager.setWifiEnabled(!wifiManager.isWifiEnabled());
Add Comment
Please, Sign In to add comment