From 037e6143716d7b277283cb1409afd1edd8dfbf96 Mon Sep 17 00:00:00 2001 From: Motomu Utsumi Date: Fri, 21 Apr 2023 13:35:06 +0900 Subject: [PATCH] Avoid activity restart by config changes while test hostside/VpnTest assumes MyActivity launched at setup is not destroyed. Test fails if the activity is restarted since mActivity in VpnTest refers to the destroyed activity and mActivity.getResult can not return result from vpn dialog. Configuration changes specified in android:configChanges will not restart activity but call Activity#onConfigurationChanged. Test: atest com.android.cts.net.HostsideVpnTests#testSocketClosed Bug: 277344807 Change-Id: Ia26e3c6495be63191bbfe6378c246ffb6d15be5a --- tests/cts/hostside/app/AndroidManifest.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cts/hostside/app/AndroidManifest.xml b/tests/cts/hostside/app/AndroidManifest.xml index 56d3cb574b..ca3397ba65 100644 --- a/tests/cts/hostside/app/AndroidManifest.xml +++ b/tests/cts/hostside/app/AndroidManifest.xml @@ -34,7 +34,8 @@ - +