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

Commit 029b6397 authored by Victor Liu's avatar Victor Liu Committed by Android (Google) Code Review
Browse files

Merge "Initialize UwbManager only if supported on device." into sc-qpr1-dev

parents 989edd73 14aee306
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -57,7 +57,9 @@ public class UwbPreferenceController extends TogglePreferenceController implemen
    public UwbPreferenceController(Context context, String key) {
        super(context, key);
        mExecutor = Executors.newSingleThreadExecutor();
        if (isUwbSupportedOnDevice()) {
            mUwbManager = context.getSystemService(UwbManager.class);
        }
        mAirplaneModeOn = Settings.Global.getInt(mContext.getContentResolver(),
                Settings.Global.AIRPLANE_MODE_ON, 0) == 1;
        mAirplaneModeChangedReceiver = new BroadcastReceiver() {