Merge "Dont enable Wi-Fi if it's not toggleable in flight mode"

This commit is contained in:
Robert Greenwalt
2013-06-28 15:05:16 +00:00
committed by Gerrit Code Review

View File

@@ -108,6 +108,7 @@ public class WifiEnabler implements CompoundButton.OnCheckedChangeListener {
Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show(); Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show();
// Reset switch to off. No infinite check/listenenr loop. // Reset switch to off. No infinite check/listenenr loop.
buttonView.setChecked(false); buttonView.setChecked(false);
return;
} }
// Disable tethering if enabling Wifi // Disable tethering if enabling Wifi