More migration to Global settings.

Bug: 7375796
Change-Id: I43079368c32e91e8bb75b00377cd57d1766f15d4
This commit is contained in:
Jeff Sharkey
2012-10-18 15:38:42 -07:00
parent deb5a843c9
commit 860eceba2c
4 changed files with 15 additions and 15 deletions

View File

@@ -104,7 +104,7 @@ public class WifiEnabler implements CompoundButton.OnCheckedChangeListener {
return;
}
// Show toast message if Wi-Fi is not allowed in airplane mode
if (isChecked && !WirelessSettings.isRadioAllowed(mContext, Settings.System.RADIO_WIFI)) {
if (isChecked && !WirelessSettings.isRadioAllowed(mContext, Settings.Global.RADIO_WIFI)) {
Toast.makeText(mContext, R.string.wifi_in_airplane_mode, Toast.LENGTH_SHORT).show();
// Reset switch to off. No infinite check/listenenr loop.
buttonView.setChecked(false);