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

Commit 743b8033 authored by Katherine Kuan's avatar Katherine Kuan
Browse files

Add one more string: quote marks around a social update

- For social update previews in the tab carousel, use quotations
at the start/end of the update.

Bug: 5063920
Change-Id: Ib08c24d67f953267781b4cffb42fd823b27d20a5
parent 3759b355
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1271,6 +1271,9 @@
    <!-- Section title for the page containing the contact's social updates on the contact card [CHAR LIMIT=20]-->
    <string name="recent_updates">Recent</string>

    <!-- Label that contains the social update from a contact on the contact card. The text should appear as a quotation. [CHAR LIMIT=5] -->
    <string name="recent_updates_tab_text">\"<xliff:g id="update_text">%s</xliff:g>\"</string>

    <!-- String describing which account type a contact came from when editing it -->
    <string name="account_type_format"><xliff:g id="source" example="Gmail">%1$s</xliff:g> contact</string>

+2 −0
Original line number Diff line number Diff line
@@ -222,6 +222,8 @@ public class ContactDetailDisplayUtils {
        if (!contactData.getStreamItems().isEmpty()) {
            StreamItemEntry firstEntry = contactData.getStreamItems().get(0);
            snippet = Html.fromHtml(firstEntry.getText());
            // Add quotes around the text
            snippet = context.getString(R.string.recent_updates_tab_text, snippet);
            if (!firstEntry.getPhotos().isEmpty()) {
                StreamItemPhotoEntry firstPhoto = firstEntry.getPhotos().get(0);
                photoUri = firstPhoto.getPhotoUri();