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

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

Replace @RequiresFlagsDisabled with @DisableFlags

For some unknown reason the former was unsuccessful in skipping the test
when the flag is enabled.

Bug: 370555223
Flag: com.android.systemui.notification_shade_blur
Test: atest NotificationShadeDepthControllerTest

Change-Id: Iff9a3a23f6fa1788157dcbbbcb5b5a275de6159f
parent e8aa3de1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package com.android.systemui.statusbar
import android.os.IBinder
import android.platform.test.annotations.DisableFlags
import android.platform.test.annotations.EnableFlags
import android.platform.test.annotations.RequiresFlagsDisabled
import android.testing.TestableLooper.RunWithLooper
import android.view.Choreographer
import android.view.View
@@ -360,7 +359,7 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() {
    }

    @Test
    @RequiresFlagsDisabled(Flags.FLAG_NOTIFICATION_SHADE_BLUR)
    @DisableFlags(Flags.FLAG_NOTIFICATION_SHADE_BLUR)
    fun updateBlurCallback_setsOpaque_whenScrim() {
        scrimVisibilityCaptor.value.accept(ScrimController.OPAQUE)
        notificationShadeDepthController.updateBlurCallback.doFrame(0)