tv.setText(str);
runningtasks--;
if (runningtasks <= 0) {
- boolean wifion = wifiman.setWifiEnabled(false);
- Log.w(TAG, "disabling wifi result " + wifion);
+ if (managewifi) {
+ boolean wifion = wifiman.setWifiEnabled(false);
+ Log.w(TAG, "disabling wifi result " + wifion);
+ }
Time tm = new Time();
tm.setToNow();
tvs.setText(R.string.lasttry);
unregisterReceiver(connChanged);
connChangedRegistered = false;
}
- boolean wifion = wifiman.setWifiEnabled(false);
- Log.w(TAG, "disabling wifi result " + wifion);
+ if (managewifi) {
+ boolean wifion = wifiman.setWifiEnabled(false);
+ Log.w(TAG, "disabling wifi result " + wifion);
+ }
}
/** Called when the menu is activated. */