From a23c61a475ad1336c510b17021adde587b4b75f5 Mon Sep 17 00:00:00 2001 From: oogee Date: Thu, 13 Dec 2018 16:30:45 +0200 Subject: [PATCH] move text changes saving in onTextChanged() rather that afterTextChanged() --- .../gr/thmmy/mthmmy/activities/topic/TopicAdapter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java index 2c80ae68..c45a7524 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java @@ -691,12 +691,12 @@ class TopicAdapter extends RecyclerView.Adapter { @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { - + ((Post) topicItems.get(holder.getAdapterPosition())).setBbContent(charSequence.toString()); } @Override public void afterTextChanged(Editable editable) { - ((Post) topicItems.get(holder.getAdapterPosition())).setBbContent(editable.toString()); + } }); @@ -712,12 +712,12 @@ class TopicAdapter extends RecyclerView.Adapter { @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { - + ((Post) topicItems.get(holder.getAdapterPosition())).setSubject(charSequence.toString()); } @Override public void afterTextChanged(Editable editable) { - ((Post) topicItems.get(holder.getAdapterPosition())).setSubject(editable.toString()); + } }); } else if (currentHolder instanceof EditMessageViewHolder) {