Remove summary template in sleep timeout setting.

The template causes incorrect display in search, and it's not
needded by anyone in code.

Bug: 36101902
Test: rerun robotests
Change-Id: Ib399e15c799e08d377b124e88eda0b8f13494ed3
This commit is contained in:
Fan Zhang
2017-05-05 10:19:52 -07:00
parent 651261c7dd
commit cdca63c4c7
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@
<com.android.settings.TimeoutListPreference
android:key="screen_timeout"
android:title="@string/screen_timeout"
android:summary="@string/screen_timeout_summary"
android:summary="@string/summary_placeholder"
android:entries="@array/screen_timeout_entries"
android:entryValues="@array/screen_timeout_values" />

View File

@@ -89,7 +89,7 @@ public class XmlParserUtilTest {
"com.android.settings.TimeoutListPreference");
final AttributeSet attrs = Xml.asAttributeSet(parser);
String summary = XmlParserUtils.getDataSummary(mContext, attrs);
String expSummary = mContext.getString(R.string.screen_timeout_summary);
String expSummary = mContext.getString(R.string.summary_placeholder);
assertThat(summary).isEqualTo(expSummary);
}