From 983104f2f0d8f91a478869ad68a07b449cb550c3 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 24 Jul 2014 01:17:34 +0200 Subject: [PATCH] presonalized read up to this point message --- res/values/strings.xml | 9 +-------- .../siacs/conversations/ui/adapter/MessageAdapter.java | 10 +++++++--- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index effea43b..c636be79 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -64,9 +64,6 @@ OK Done Hide - Create \u0026 Invite - Do you want to create a new conference with a randomly generated address and invite the selected contacts to it? - No existing conferences Invitation sent Account offline You have to be online to invite people to conferences @@ -156,7 +153,6 @@ Grant presence updates Preemptively grant and ask for presence subscription for contacts you created Subscriptions - Subscription updated Your account Keys Send presence updates @@ -181,13 +177,10 @@ Server not found No connectivity Server requires TLS - Untrusted cerficate Registration failed Username already in use Registration completed Server does not support registration - Don\'t connect - Trust certificate Plain text OTR OpenPGP @@ -274,5 +267,5 @@ Leave Contact added you to contact list Add back - Your contact has read up to this point + %s has read up to this point diff --git a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 810fb540..0a2857d2 100644 --- a/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -339,9 +339,13 @@ public class MessageAdapter extends ArrayAdapter { @Override public void onClick(View v) { - Toast.makeText( - getContext(), - R.string.contact_has_read_up_to_this_point, + String name = item.getConversation() + .getName(true); + String read = getContext() + .getString( + R.string.contact_has_read_up_to_this_point, + name); + Toast.makeText(getContext(), read, Toast.LENGTH_SHORT).show(); } });