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

Commit 849bf284 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Unregister listeners on test tearDown" into main

parents 37f22f5c e41a6b79
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ import com.android.systemui.util.concurrency.FakeExecutor;
import com.android.systemui.util.time.FakeSystemClock;
import com.android.systemui.util.wrapper.RotationPolicyWrapper;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -136,6 +137,11 @@ public class DeviceStateRotationLockSettingControllerTest extends SysuiTestCase
        mDeviceStateCallback = deviceStateCallbackArgumentCaptor.getValue();
    }

    @After
    public void tearDown() {
        mDeviceStateRotationLockSettingController.setListening(false);
    }

    @Test
    public void whenSavedSettingsEmpty_defaultsLoadedAndSaved() {
        initializeSettingsWith();