Fix the description under timeout isn't translated completely

Reuse existing string instead of using new string for one-handed
timeout description.

Bug: 159298092

Test: manual
Change-Id: I903998dc58218f67d37fa449ef1a6a0615637bb5
This commit is contained in:
Jason Chang
2020-07-15 17:20:03 +08:00
parent 9ee730cc49
commit 9cfe959a23
3 changed files with 2 additions and 4 deletions

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()]));
}
}