Merge "Fix the description under timeout isn't translated completely"
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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()]));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user