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

Commit 121952f8 authored by Angela Wang's avatar Angela Wang
Browse files

Fix HearingDevicesDialogDelegateTest failed

The HearingDevicesDialogDelegateTest is failing with a NullPointerException if it runs after the FontScalingDialogDelegateTest. This issue seems related to the changes introduced in ag/31234175.

Dismiss the dialog in FonScalingDialogDelegateTest#changeFontSize_buttonIsDisabledBeforeFontSizeChangeFinishes first to prevent the test failing.

Flag: EXEMPT bugfix
Bug: 390185052
Test: atest SystemUITests:com.android.systemui.accessibility
Change-Id: I38c585fcb140ab6e3e52d70de210c8e338e6228f
parent 79789c7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -316,5 +316,7 @@ class FontScalingDialogDelegateTest : SysuiTestCase() {
        dialog.onConfigurationChanged(config)
        testableLooper.processAllMessages()
        assertThat(doneButton.isEnabled).isTrue()

        dialog.dismiss()
    }
}