Fix footer text not translated in Magnification settings.
- pass in the summary res id instead of the actual text when building the launch bundle for the magnification settings. - remove the title argument as we are passing the title res already, which takes precedence. Change-Id: I4ba624e1d9722aa980ea94c306df9a015a159555 Fixes: 78126057 Test: run i18nscreenshots
This commit is contained in:
@@ -135,7 +135,10 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference
|
||||
}
|
||||
|
||||
// Summary.
|
||||
if (arguments.containsKey(AccessibilitySettings.EXTRA_SUMMARY)) {
|
||||
if (arguments.containsKey(AccessibilitySettings.EXTRA_SUMMARY_RES)) {
|
||||
final int summary = arguments.getInt(AccessibilitySettings.EXTRA_SUMMARY_RES);
|
||||
mFooterPreferenceMixin.createFooterPreference().setTitle(summary);
|
||||
} else if (arguments.containsKey(AccessibilitySettings.EXTRA_SUMMARY)) {
|
||||
final CharSequence summary = arguments.getCharSequence(
|
||||
AccessibilitySettings.EXTRA_SUMMARY);
|
||||
mFooterPreferenceMixin.createFooterPreference().setTitle(summary);
|
||||
|
||||
Reference in New Issue
Block a user