From b223784560be1804163fe6bec02aba02b2093b41 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Mon, 21 Jul 2014 19:54:26 +0200 Subject: [PATCH] added hint to explain the contact has read up to this point --- res/values/strings.xml | 1 + src/eu/siacs/conversations/ui/ConversationFragment.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/res/values/strings.xml b/res/values/strings.xml index e542b58e6..effea43ba 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -274,4 +274,5 @@ Leave Contact added you to contact list Add back + Your contact has read up to this point diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index 546d039ed..2a3065295 100644 --- a/src/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -494,6 +494,13 @@ public class ConversationFragment extends Fragment { getActivity() .getApplicationContext())); viewHolder.contact_picture.setAlpha(128); + viewHolder.contact_picture.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + Toast.makeText(getActivity(), R.string.contact_has_read_up_to_this_point, Toast.LENGTH_SHORT).show(); + } + }); } break;