Disable WifiMacAddress preference on device without FEATURE_WIFI
Bug: 291863659 Test: remove android.hardware.wifi; Settings> Device Preferences> About> Status; preference is not displayed; no NPE in logcat Change-Id: I997aaff01cb513b5d8f63805a2ab102a180853d6
This commit is contained in:
@@ -59,7 +59,7 @@ public abstract class AbstractWifiMacAddressPreferenceController
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return true;
|
||||
return mWifiManager != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user