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

Commit 32a72981 authored by William Escande's avatar William Escande
Browse files

Use mContext in constructor

Since mContext is initialized, we should make use of it

Bug: 262605980
Test: atest ServiceBluetoothTests (No-Op)
Change-Id: Iff251342704596367129dc7ee33193820ca9030a
parent 3724143e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -660,14 +660,14 @@ class BluetoothManagerService {
                        mContext.getSystemService(UserManager.class),
                        "UserManager system service cannot be null");

        mBinder = new BluetoothServiceBinder(this, context, mUserManager);
        mBinder = new BluetoothServiceBinder(this, mContext, mUserManager);
        mBluetoothHandlerThread.start();
        mHandler =
                BluetoothServerProxy.getInstance()
                        .newBluetoothHandler(
                                new BluetoothHandler(mBluetoothHandlerThread.getLooper()));

        mContentResolver = context.getContentResolver();
        mContentResolver = mContext.getContentResolver();

        // Observe BLE scan only mode settings change.
        registerForBleScanModeChange();
@@ -742,13 +742,13 @@ class BluetoothManagerService {
                    new BluetoothAirplaneModeListener(
                            this,
                            mBluetoothHandlerThread.getLooper(),
                            context,
                            mContext,
                            mBluetoothNotificationManager);
        }

        mBluetoothSatelliteModeListener =
                new BluetoothSatelliteModeListener(
                        this, mBluetoothHandlerThread.getLooper(), context);
                        this, mBluetoothHandlerThread.getLooper(), mContext);
    }

    IBluetoothManager.Stub getBinder() {