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

Commit 42801d04 authored by Peter Liang's avatar Peter Liang
Browse files

Fix the test fail of the MenuAnimationControllerTest.

Root cause: looper must not be null

Solution: Added looper into

Fix: 255338428
Test: atest MenuAnimationControllerTest
Change-Id: I54a26f4b93c27a6ea1dd4500e65ccbf371de1aa5
parent 9f360cb8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertThat;

import android.graphics.PointF;
import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;
import android.view.WindowManager;

import androidx.test.filters.SmallTest;
@@ -32,6 +33,7 @@ import org.junit.runner.RunWith;

/** Tests for {@link MenuAnimationController}. */
@RunWith(AndroidTestingRunner.class)
@TestableLooper.RunWithLooper(setAsMainLooper = true)
@SmallTest
public class MenuAnimationControllerTest extends SysuiTestCase {
    private MenuView mMenuView;