Merge "Use new strings for Wi-Fi hotspot toggle specific scenario" am: e7e0e5b831

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12965661

Change-Id: I818f8b75cd145db4ba448923d47d7bc3f0a807cd
This commit is contained in:
TreeHugger Robot
2020-11-04 13:34:13 +00:00
committed by Automerger Merge Worker

View File

@@ -129,6 +129,9 @@ public class WifiTetherSettings extends RestrictedDashboardFragment
// SettingsActivity as base for all preference fragments.
final SettingsActivity activity = (SettingsActivity) getActivity();
final SwitchBar switchBar = activity.getSwitchBar();
switchBar.setSwitchBarText(
com.android.settingslib.R.string.wifi_hotspot_switch_on_text,
com.android.settingslib.R.string.wifi_hotspot_switch_off_text);
mSwitchBarController = new WifiTetherSwitchBarController(activity, switchBar);
getSettingsLifecycle().addObserver(mSwitchBarController);
switchBar.show();