Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab71d277 authored by Gregory Montoir's avatar Gregory Montoir
Browse files

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
parent 77c76ec9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public abstract class AbstractWifiMacAddressPreferenceController

    @Override
    public boolean isAvailable() {
        return true;
        return mWifiManager != null;
    }

    @Override