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

Commit 05bf445d authored by Lei Yu's avatar Lei Yu
Browse files

Revert "Remove useless broadcast registeration"

This reverts commit f6bd36df.

Reason for revert: This cause a crash in systemui

Bug: 113095328

Change-Id: I5e6169f0e86e88d1b2d36d04c436e9990eaffcb0
parent f6bd36df
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);