Add summary placeholder to data saver preference.

- reserve 2 lines for the data saver summary to avoid the preference
beging relayout when the summary text get updates.

Change-Id: Ibced7dc4b9620fe45541ea470d34bf83be66480d
Fix: 37925232
Test: visual
This commit is contained in:
Doris Ling
2017-05-04 12:35:31 -07:00
parent 408fd90102
commit bab86af55b
2 changed files with 4 additions and 0 deletions

View File

@@ -2126,6 +2126,9 @@
<string name="sound_settings">Sound</string>
<!-- DO NOT TRANSLATE Summary placeholder -->
<string name="summary_placeholder" translatable="false">&#160;</string>
<!-- DO NOT TRANSLATE Summary placeholder reserving 2 lines -->
<string name="summary_two_lines_placeholder" translatable="false">&#160;\n&#160;</string>
<!-- DO NOT TRANSLATE Empty summary for dynamic preferences -->
<string name="summary_empty" translatable="false"></string>
<!-- Sound settings screen, volume title -->

View File

@@ -20,6 +20,7 @@
<Preference
android:key="unrestricted_access"
android:title="@string/unrestricted_data_saver"
android:summary="@string/summary_two_lines_placeholder"
android:fragment="com.android.settings.datausage.UnrestrictedDataAccess" />
</PreferenceScreen>