Merge "Fix the description under timeout isn't translated completely"

This commit is contained in:
Jason Chang
2020-07-17 06:18:12 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 4 deletions

View File

@@ -10922,8 +10922,6 @@
<string name="one_handed_timeout_medium">8 seconds</string>
<!-- Timeout(Long) title for one handed [CHAR LIMIT=60] -->
<string name="one_handed_timeout_long">12 seconds</string>
<!-- Timeout summary [CHAR LIMIT=60] -->
<string name="one_handed_timeout_summary"><xliff:g id="timeout" example="4 seconds">After %1$s of inactivity</xliff:g></string>
<!-- Search keywords for "One-Handed" settings [CHAR_LIMIT=NONE] -->
<string name="keywords_one_handed">reachability</string>

View File

@@ -87,7 +87,7 @@ public class OneHandedTimeoutPreferenceController extends BasePreferenceControll
return mContext.getResources().getString(R.string.screensaver_settings_summary_never);
}
return String.format(mContext.getResources().getString(
R.string.one_handed_timeout_summary), mTimeoutMap.get(getTimeoutValue()));
R.string.screen_timeout_summary), mTimeoutMap.get(getTimeoutValue()));
}
@Override

View File

@@ -103,7 +103,7 @@ public class OneHandedTimeoutPreferenceControllerTest {
OneHandedSettingsUtils.OneHandedTimeout.SHORT.getValue());
assertThat(mController.getSummary()).isEqualTo(String.format(
mContext.getResources().getString(R.string.one_handed_timeout_summary),
mContext.getResources().getString(R.string.screen_timeout_summary),
timeoutTitles[OneHandedSettingsUtils.OneHandedTimeout.SHORT.ordinal()]));
}
}