Update Settings app to use new namespace for airplane-mode settings
Bug 7132230 Change-Id: I0253637e6d464afc229cf11ffe69852bf44fe261
This commit is contained in:
@@ -98,8 +98,8 @@ public class WifiApEnabler {
|
||||
}
|
||||
|
||||
private void enableWifiCheckBox() {
|
||||
boolean isAirplaneMode = Settings.System.getInt(mContext.getContentResolver(),
|
||||
Settings.System.AIRPLANE_MODE_ON, 0) != 0;
|
||||
boolean isAirplaneMode = Settings.Global.getInt(mContext.getContentResolver(),
|
||||
Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
|
||||
if(!isAirplaneMode) {
|
||||
mCheckBox.setEnabled(true);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user