Browse Source

move text changes saving in onTextChanged() rather that afterTextChanged()

pull/61/merge
oogee 6 years ago
parent
commit
a23c61a475
  1. 8
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

8
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -691,12 +691,12 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
@Override @Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
((Post) topicItems.get(holder.getAdapterPosition())).setBbContent(charSequence.toString());
} }
@Override @Override
public void afterTextChanged(Editable editable) { public void afterTextChanged(Editable editable) {
((Post) topicItems.get(holder.getAdapterPosition())).setBbContent(editable.toString());
} }
}); });
@ -712,12 +712,12 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
@Override @Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
((Post) topicItems.get(holder.getAdapterPosition())).setSubject(charSequence.toString());
} }
@Override @Override
public void afterTextChanged(Editable editable) { public void afterTextChanged(Editable editable) {
((Post) topicItems.get(holder.getAdapterPosition())).setSubject(editable.toString());
} }
}); });
} else if (currentHolder instanceof EditMessageViewHolder) { } else if (currentHolder instanceof EditMessageViewHolder) {

Loading…
Cancel
Save