Color correction improvement (5/n)

"Use Color correction" should be replaced by "Correct colors"

Bug: 145968068
Bug: 147988288
Test: make RunSettingsRoboTests2
Change-Id: I90ef36a99b34a82eb9f29f8b79d9aaa8d56441d1
This commit is contained in:
menghanli
2020-01-20 14:18:15 +08:00
parent b0e78a94fd
commit 756d819c42
3 changed files with 5 additions and 8 deletions

View File

@@ -4948,7 +4948,7 @@
<!-- Used in the accessibility service settings to control turning on/off the service entirely --> <!-- Used in the accessibility service settings to control turning on/off the service entirely -->
<string name="accessibility_service_master_switch_title">Use <xliff:g id="accessibility_app_name" example="TalkBack">%1$s</xliff:g></string> <string name="accessibility_service_master_switch_title">Use <xliff:g id="accessibility_app_name" example="TalkBack">%1$s</xliff:g></string>
<!-- Used in the Color correction settings screen to control turning on/off the feature entirely --> <!-- Used in the Color correction settings screen to control turning on/off the feature entirely -->
<string name="accessibility_daltonizer_master_switch_title">Use color correction</string> <string name="accessibility_daltonizer_master_switch_title">Correct colors</string>
<!-- Used in the Captions settings screen to control turning on/off the feature entirely --> <!-- Used in the Captions settings screen to control turning on/off the feature entirely -->
<string name="accessibility_caption_master_switch_title">Show captions</string> <string name="accessibility_caption_master_switch_title">Show captions</string>
<!-- Title for Caption preference settings screen for configuring font style. [CHAR LIMIT=NONE] --> <!-- Title for Caption preference settings screen for configuring font style. [CHAR LIMIT=NONE] -->

View File

@@ -105,10 +105,8 @@ public class ToggleColorInversionPreferenceFragment extends ToggleFeaturePrefere
@Override @Override
protected void updateSwitchBarText(SwitchBar switchBar) { protected void updateSwitchBarText(SwitchBar switchBar) {
final String switchBarText = getString( switchBar.setSwitchBarText(R.string.accessibility_display_inversion_switch_title,
R.string.accessibility_display_inversion_switch_title, R.string.accessibility_display_inversion_switch_title);
getString(R.string.accessibility_display_inversion_switch_title));
switchBar.setSwitchBarText(switchBarText, switchBarText);
} }
@Override @Override

View File

@@ -325,9 +325,8 @@ public final class ToggleDaltonizerPreferenceFragment extends ToggleFeaturePrefe
@Override @Override
protected void updateSwitchBarText(SwitchBar switchBar) { protected void updateSwitchBarText(SwitchBar switchBar) {
final String switchBarText = getString(R.string.accessibility_service_master_switch_title, switchBar.setSwitchBarText(R.string.accessibility_daltonizer_master_switch_title,
getString(R.string.accessibility_display_daltonizer_preference_title)); R.string.accessibility_daltonizer_master_switch_title);
switchBar.setSwitchBarText(switchBarText, switchBarText);
} }
@Override @Override