diff options
| author | 2025-01-28 11:34:23 -0800 | |
|---|---|---|
| committer | 2025-01-28 11:34:23 -0800 | |
| commit | 665e2e6a49c03b6d85f11fa003459b8da6e68b58 (patch) | |
| tree | 54ef501893a0cb8d648bd5d773b8f68b690a1a6c | |
| parent | 47bd15c5eae1e44132a803dab945d64aed30625a (diff) | |
| parent | 205035e4b70cf2e2d150077e89ea51341b495013 (diff) | |
Merge "Check lateinit var state in test teardown" into main
| -rw-r--r-- | packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchControllerTest.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchControllerTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchControllerTest.kt index abfd64adab22..2e43e5273766 100644 --- a/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchControllerTest.kt +++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/KeyguardQsUserSwitchControllerTest.kt @@ -100,7 +100,9 @@ class KeyguardQsUserSwitchControllerTest : SysuiTestCase() { @After fun tearDown() { - ViewUtils.detachView(view) + if (::view.isInitialized) { + ViewUtils.detachView(view) + } } @Test |