@@ -350,8 +350,8 @@ public class PolicyManagementFragment extends BaseSearchablePolicyPreferenceFrag
350
350
private static final String LOCK_NOW_KEY = "lock_now" ;
351
351
private static final String SET_ACCESSIBILITY_SERVICES_KEY = "set_accessibility_services" ;
352
352
private static final String SET_ALWAYS_ON_VPN_KEY = "set_always_on_vpn" ;
353
- private static final String SET_GET_NETWORK_PREFERENCE_STATUS =
354
- "set_get_network_preference_status " ;
353
+ private static final String SET_GET_PREFERENTIAL_NETWORK_SERVICE_STATUS =
354
+ "set_get_preferential_network_service_status " ;
355
355
private static final String SET_GLOBAL_HTTP_PROXY_KEY = "set_global_http_proxy" ;
356
356
private static final String SET_LOCK_TASK_FEATURES_KEY = "set_lock_task_features" ;
357
357
private static final String CLEAR_GLOBAL_HTTP_PROXY_KEY = "clear_global_http_proxy" ;
@@ -476,7 +476,7 @@ public class PolicyManagementFragment extends BaseSearchablePolicyPreferenceFrag
476
476
private SwitchPreference mDisableScreenCaptureSwitchPreference ;
477
477
private DpcSwitchPreference mDisableScreenCaptureOnParentSwitchPreference ;
478
478
private SwitchPreference mMuteAudioSwitchPreference ;
479
- private SwitchPreference mEnterpriseNetworkPreferenceSwitchPreference ;
479
+ private SwitchPreference mPreferentialNetworkServiceSwitchPreference ;
480
480
481
481
private DpcPreference mDisableStatusBarPreference ;
482
482
private DpcPreference mReenableStatusBarPreference ;
@@ -605,12 +605,12 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
605
605
MUTE_AUDIO_KEY );
606
606
mMuteAudioSwitchPreference .setOnPreferenceChangeListener (this );
607
607
608
- mEnterpriseNetworkPreferenceSwitchPreference = (SwitchPreference ) findPreference (
609
- SET_GET_NETWORK_PREFERENCE_STATUS );
610
- mEnterpriseNetworkPreferenceSwitchPreference .setOnPreferenceChangeListener (this );
608
+ mPreferentialNetworkServiceSwitchPreference = (SwitchPreference ) findPreference (
609
+ SET_GET_PREFERENTIAL_NETWORK_SERVICE_STATUS );
610
+ mPreferentialNetworkServiceSwitchPreference .setOnPreferenceChangeListener (this );
611
611
if (mIsProfileOwner ) {
612
- mEnterpriseNetworkPreferenceSwitchPreference .setChecked (
613
- mDevicePolicyManager .isEnterpriseNetworkPreferenceEnabled ());
612
+ mPreferentialNetworkServiceSwitchPreference .setChecked (
613
+ mDevicePolicyManager .isPreferentialNetworkServiceEnabled ());
614
614
}
615
615
findPreference (LOCK_SCREEN_POLICY_KEY ).setOnPreferenceClickListener (this );
616
616
findPreference (PASSWORD_CONSTRAINTS_KEY ).setOnPreferenceClickListener (this );
@@ -1551,10 +1551,10 @@ public boolean onPreferenceChange(Preference preference, Object newValue) {
1551
1551
(Boolean ) newValue );
1552
1552
reloadMuteAudioUi ();
1553
1553
return true ;
1554
- case SET_GET_NETWORK_PREFERENCE_STATUS :
1555
- mDevicePolicyManager .setEnterpriseNetworkPreferenceEnabled ((Boolean ) newValue );
1554
+ case SET_GET_PREFERENTIAL_NETWORK_SERVICE_STATUS :
1555
+ mDevicePolicyManager .setPreferentialNetworkServiceEnabled ((Boolean ) newValue );
1556
1556
showToast (Boolean .toString (
1557
- mDevicePolicyManager .isEnterpriseNetworkPreferenceEnabled ()));
1557
+ mDevicePolicyManager .isPreferentialNetworkServiceEnabled ()));
1558
1558
return true ;
1559
1559
case STAY_ON_WHILE_PLUGGED_IN :
1560
1560
mDevicePolicyManager .setGlobalSetting (mAdminComponentName ,
0 commit comments