Merge "Use the new isNetworkSupported api for wifi-only"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7edbc609fd
@@ -135,7 +135,7 @@ public class WirelessSettings extends SettingsPreferenceFragment {
|
||||
}
|
||||
|
||||
// Remove Mobile Network Settings if it's a wifi-only device.
|
||||
if (Utils.isWifiOnly()) {
|
||||
if (Utils.isWifiOnly(getActivity())) {
|
||||
getPreferenceScreen().removePreference(findPreference(KEY_MOBILE_NETWORK_SETTINGS));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user