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

Unverified Commit 0e8da0ef authored by Timi Rautamäki's avatar Timi Rautamäki Committed by Michael Bestas
Browse files

Settings: make sure Wifi exists before adding controllers

Change-Id: I6c1fd5222aa9fd33cbec67b8f572d031bfe86466
parent 7285f2f6
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Bundle;
@@ -655,10 +656,12 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
        controllers.add(new LogdSizePreferenceController(context));
        controllers.add(new LogPersistPreferenceController(context, fragment, lifecycle));
        controllers.add(new CameraLaserSensorPreferenceController(context));
        if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)) {
            controllers.add(new WifiDisplayCertificationPreferenceController(context));
            controllers.add(new WifiVerboseLoggingPreferenceController(context));
            controllers.add(new WifiScanThrottlingPreferenceController(context));
            controllers.add(new WifiNonPersistentMacRandomizationPreferenceController(context));
        }
        controllers.add(new MobileDataAlwaysOnPreferenceController(context));
        controllers.add(new TetheringHardwareAccelPreferenceController(context));
        controllers.add(new BluetoothDeviceNoNamePreferenceController(context));