Merge "Add string for text of bluetooth switch" am: 868a15350a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12797033 Change-Id: I33be40196bf1a193024d758836640a35b2a2870c
This commit is contained in:
@@ -12286,4 +12286,9 @@
|
||||
|
||||
<!-- Summary for see all preference when bluetooth is disable [CHAR LIMIT=none]-->
|
||||
<string name="connected_device_see_all_summary">Bluetooth will turn on</string>
|
||||
|
||||
<!-- Switch text for bluetooth feature being on [CHAR LIMIT=NONE] -->
|
||||
<string name="bluetooth_setting_on">On</string>
|
||||
<!-- Switch text for bluetooth feature being off [CHAR LIMIT=NONE] -->
|
||||
<string name="bluetooth_setting_off">Off</string>
|
||||
</resources>
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user