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

Commit d9d7d4f2 authored by Shan Huang's avatar Shan Huang
Browse files

Fix RemoteInputViewTest for when notification_row_transparency is enabled.

Bug: 392187268
Test: atest RemoteInputViewTest
Flag: com.android.systemui.notification_row_transparency
Change-Id: I1e69a92ecdf0bc1a0ae8a74df490d045db95e0b6
parent 18516fda
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ import androidx.test.filters.SmallTest;
import com.android.internal.logging.UiEventLogger;
import com.android.internal.logging.testing.UiEventLoggerFake;
import com.android.systemui.Dependency;
import com.android.systemui.Flags;
import com.android.systemui.SysuiTestCase;
import com.android.systemui.animation.AnimatorTestRule;
import com.android.systemui.flags.FakeFeatureFlags;
@@ -409,9 +410,14 @@ public class RemoteInputViewTest extends SysuiTestCase {
        // fast forward to end of animation
        mAnimatorTestRule.advanceTimeBy(1);

        if (Flags.notificationRowTransparency()) {
            // With transparent rows, fadeOutView should be hidden after the animation.
            assertEquals(0f, fadeOutView.getAlpha());
        } else {
            // assert that fadeOutView's alpha is reset to 1f after the animation (hidden behind
            // RemoteInputView)
            assertEquals(1f, fadeOutView.getAlpha());
        }
        assertFalse(view.isAnimatingAppearance());
        assertEquals(View.VISIBLE, view.getVisibility());
        assertEquals(1f, view.getAlpha());