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

Commit 9f3f8879 authored by Paul Soulos's avatar Paul Soulos
Browse files

Adds a "You: " prefix to messages sent by you

bug: 17107373
Change-Id: I93518d0c98f27b89f9db1f1d0372d84ffee8dade
parent 8b3d71d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -702,4 +702,7 @@
    <!-- Content description for directions secondary button [CHAR LIMIT=NONE] -->
    <string name="content_description_directions">directions to location</string>

    <!-- Prefix for messages that you sent [CHAR LIMIT=40] -->
    <string name="message_from_you_prefix">You: <xliff:g id="sms_body">%s</xliff:g></string>

</resources>
+5 −1
Original line number Diff line number Diff line
@@ -54,7 +54,11 @@ public class SmsInteraction implements ContactInteraction {

    @Override
    public String getViewHeader(Context context) {
        return getBody();
        String body = getBody();
        if (getType() == Sms.MESSAGE_TYPE_SENT) {
            body = context.getResources().getString(R.string.message_from_you_prefix, body);
        }
        return body;
    }

    @Override