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

Commit 64a81a09 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Remove useless broadcast registeration""

parents 67f36968 05bf445d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -106,6 +106,7 @@ public class BluetoothEventManager {
                new AudioModeChangedHandler());

        mContext.registerReceiver(mBroadcastReceiver, mAdapterIntentFilter, null, mReceiverHandler);
        mContext.registerReceiver(mProfileBroadcastReceiver, mProfileIntentFilter, null, mReceiverHandler);
    }

    public void setReceiverHandler(android.os.Handler handler) {
+0 −1
Original line number Diff line number Diff line
@@ -241,7 +241,6 @@ public class LocalBluetoothProfileManagerTest {
        mShadowBluetoothAdapter.setSupportedProfiles(null);
        mProfileManager = new LocalBluetoothProfileManager(mContext, mLocalBluetoothAdapter,
                mDeviceManager, mEventManager);
        mEventManager.registerProfileIntentReceiver();
        // Refer to BluetoothControllerImpl, it will call setReceiverHandler after
        // LocalBluetoothProfileManager created.
        mEventManager.setReceiverHandler(null);