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

Commit b1d7c211 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Dismiss dialog after MediaOutputDialog tests

Each test creates a Dialog that was not dismissed. This caused a crash
down the line due to it being unresponsive.

Test: atest SystemUITests
Fixes: 169755490
Change-Id: I34119ec1272f7595c5aa8d9c8a379bd5d4efb3c6
parent bd613093
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import com.android.systemui.SysuiTestCase;
import com.android.systemui.plugins.ActivityStarter;
import com.android.systemui.statusbar.phone.ShadeController;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -73,6 +74,11 @@ public class MediaOutputDialogTest extends SysuiTestCase {
        when(mMediaDevice.getFeatures()).thenReturn(mFeatures);
    }

    @After
    public void tearDown() {
        mMediaOutputDialog.dismissDialog();
    }

    @Test
    public void getStopButtonVisibility_remoteDevice_returnVisible() {
        mFeatures.add(MediaRoute2Info.FEATURE_REMOTE_PLAYBACK);