Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bab86af5 authored by Doris Ling's avatar Doris Ling
Browse files

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
parent 408fd901
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 -->
+1 −0
Original line number Diff line number Diff line
@@ -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>