diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-01-19 21:03:42 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-01-19 21:03:42 +0100 |
commit | 081d73c28039a579a84b8ba591720e0ad962dbec (patch) | |
tree | 5a0f5fe48f9d5693b4d1e54d320897d294228fb2 /src/main/java | |
parent | f4ba34a4e6e9d9248ad3ec6834702a890de3ac27 (diff) |
don't overlap readmarker with "show more messages"
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index 4292f08fb..1d139702c 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -839,13 +839,10 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie return view; } else if (type == STATUS) { if ("LOAD_MORE".equals(message.getBody())) { + viewHolder.status_message.setVisibility(View.GONE); + viewHolder.contact_picture.setVisibility(View.GONE); viewHolder.load_more_messages.setVisibility(View.VISIBLE); - viewHolder.load_more_messages.setOnClickListener(new OnClickListener() { - @Override - public void onClick(View v) { - loadMoreMessages(message.getConversation()); - } - }); + viewHolder.load_more_messages.setOnClickListener(v -> loadMoreMessages(message.getConversation())); } else { viewHolder.status_message.setVisibility(View.VISIBLE); viewHolder.load_more_messages.setVisibility(View.GONE); |