Add a config to hide the 3G option at preferred network mode UI

Add a config config_display_network_mode_3g_option to hide the 3G
option at preferred network mode UI

Bug: 261615630
Test: build pass. local test pass.
atest EnabledNetworkModePreferenceControllerTest

Change-Id: I4f94971add1d1eddc9f7c7458b8fc8fdcec3935e
This commit is contained in:
SongFerngWang
2023-02-08 06:12:54 +08:00
parent 92a4144f14
commit f7685dd715
5 changed files with 131 additions and 74 deletions

View File

@@ -497,6 +497,7 @@ public class EnabledNetworkModePreferenceControllerTest {
mPersistableBundle.putBoolean(CarrierConfigManager.KEY_PREFER_2G_BOOL, true);
mPersistableBundle.putBoolean(CarrierConfigManager.KEY_LTE_ENABLED_BOOL, true);
}
mController.init(SUB_ID);
}
private void mockAllowedNetworkTypes(long allowedNetworkType) {