Device do network scan after user rotates NetworkSelection page

Add the networkSelectSettings fragment into new activity, and set
the activity's android:configChanges as
"orientation|keyboard|keyboardHidden|screenSize|screenLayout
|smallestScreenSize".

Bug: 204039043
Test: atest AutoSelectPreferenceControllerTest (pass)
atest OpenNetworkSelectPagePreferenceControllerTest (pass)
atest NetworkSelectSettingsTest (pass)

Change-Id: Ic933c2294401bc50e105ddcfd2a17886d0bbefc3
This commit is contained in:
SongFerngWang
2021-11-04 19:04:04 +08:00
parent e87862a245
commit f54ead1f94
8 changed files with 59 additions and 44 deletions

View File

@@ -122,10 +122,6 @@ public class NetworkSelectSettingsTest {
public TargetClass(NetworkSelectSettingsTest env) {
mTestEnv = env;
Bundle bundle = new Bundle();
bundle.putInt(Settings.EXTRA_SUB_ID, SUB_ID);
setArguments(bundle);
}
@Override
@@ -184,6 +180,11 @@ public class NetworkSelectSettingsTest {
protected boolean enableAggregation(Context context) {
return mTestEnv.mIsAggregationEnabled;
}
@Override
protected int getSubId() {
return SUB_ID;
}
}
@Test