[Wi-Fi] WiFi Settings inclusive language fix plan phase 1
Replace WiFi related terms which contain Master wording. Goal: Create a fixit for Android Platform to reduce the use of non-inclusive language for all code. Bug: 161425297 Test: make RunSettingsRoboTests -j or make RunSettingsRoboTests ROBOTEST_FILTER=DashboardFragmentTest make RunSettingsRoboTests ROBOTEST_FILTER=WirelessDebuggingPreferenceControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=AutomaticStorageManagementSwitchPreferenceControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=AllInOneTetherPreferenceControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=TopLevelNetworkEntryPreferenceControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=PrimarySwitchPreferenceTest make RunSettingsRoboTests ROBOTEST_FILTER=WifiPrimarySwitchPreferenceControllerTest make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherPreferenceControllerTest Change-Id: I9395c50e092e124016609f88f7c8151554a0d874
This commit is contained in:
@@ -29,8 +29,8 @@ import androidx.preference.PreferenceScreen;
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
import com.android.settings.deletionhelper.ActivationWarningFragment;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settings.widget.MasterSwitchController;
|
||||
import com.android.settings.widget.MasterSwitchPreference;
|
||||
import com.android.settings.widget.PrimarySwitchController;
|
||||
import com.android.settings.widget.PrimarySwitchPreference;
|
||||
import com.android.settings.widget.SwitchWidgetController;
|
||||
import com.android.settingslib.Utils;
|
||||
import com.android.settingslib.core.instrumentation.MetricsFeatureProvider;
|
||||
@@ -43,8 +43,8 @@ public class AutomaticStorageManagementSwitchPreferenceController extends
|
||||
@VisibleForTesting
|
||||
static final String STORAGE_MANAGER_ENABLED_BY_DEFAULT_PROPERTY = "ro.storage_manager.enabled";
|
||||
private final MetricsFeatureProvider mMetricsFeatureProvider;
|
||||
private MasterSwitchPreference mSwitch;
|
||||
private MasterSwitchController mSwitchController;
|
||||
private PrimarySwitchPreference mSwitch;
|
||||
private PrimarySwitchController mSwitchController;
|
||||
private FragmentManager mFragmentManager;
|
||||
|
||||
public AutomaticStorageManagementSwitchPreferenceController(Context context, String key) {
|
||||
@@ -77,7 +77,7 @@ public class AutomaticStorageManagementSwitchPreferenceController extends
|
||||
mSwitch.setChecked(Utils.isStorageManagerEnabled(mContext));
|
||||
|
||||
if (mSwitch != null) {
|
||||
mSwitchController = new MasterSwitchController(mSwitch);
|
||||
mSwitchController = new PrimarySwitchController(mSwitch);
|
||||
mSwitchController.setListener(this);
|
||||
mSwitchController.startListening();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user