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

Commit 41227fd2 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

LeAudioServiceTest: Unregister from intents as a first thing on teardown

Avoid catching unwanted intents

Bug: 297922257
Test: atest LeAudioServiceTest
Tag: #feature
Change-Id: I6d0a298c138a1c37b4e43780dd63115d1a8deb95
parent abe3ac92
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,10 +234,10 @@ public class LeAudioServiceTest {
            return;
        }

        mTargetContext.unregisterReceiver(mLeAudioIntentReceiver);
        mBondedDevices.clear();
        mGroupIntentQueue.clear();
        stopService();
        mTargetContext.unregisterReceiver(mLeAudioIntentReceiver);
        mDeviceQueueMap.clear();
        TestUtils.clearAdapterService(mAdapterService);
        LeAudioNativeInterface.setInstance(null);