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
1 file changed