Add string for text of bluetooth switch

Bug: 153888620
Test: manually test
Change-Id: I60a791190abf535162f7ed1b80fe265482515137
This commit is contained in:
Hugh Chen
2020-10-12 16:42:01 +08:00
parent f0cdd9cdb4
commit 3c33b6ea41
2 changed files with 6 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ public class BluetoothDashboardFragment extends DashboardFragment {
SettingsActivity activity = (SettingsActivity) getActivity();
mSwitchBar = activity.getSwitchBar();
mSwitchBar.setSwitchBarText(R.string.bluetooth_setting_on, R.string.bluetooth_setting_off);
mController = new BluetoothSwitchPreferenceController(activity,
new SwitchBarController(mSwitchBar), mFooterPreference);
Lifecycle lifecycle = getSettingsLifecycle();