|
@ -104,7 +104,7 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
* @param postsList List of {@link Post} objects to use |
|
|
* @param postsList List of {@link Post} objects to use |
|
|
*/ |
|
|
*/ |
|
|
TopicAdapter(Context context, List<Post> postsList, String baseUrl, |
|
|
TopicAdapter(Context context, List<Post> postsList, String baseUrl, |
|
|
TopicActivity.TopicTask topicTask, TopicActivity.PrepareForEdit prepareForEditTask) { |
|
|
TopicActivity.TopicTask topicTask) { |
|
|
this.context = context; |
|
|
this.context = context; |
|
|
this.postsList = postsList; |
|
|
this.postsList = postsList; |
|
|
this.baseUrl = baseUrl; |
|
|
this.baseUrl = baseUrl; |
|
@ -115,7 +115,6 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
viewProperties.add(new boolean[3]); |
|
|
viewProperties.add(new boolean[3]); |
|
|
} |
|
|
} |
|
|
this.topicTask = topicTask; |
|
|
this.topicTask = topicTask; |
|
|
this.prepareForEditTask = prepareForEditTask; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ArrayList<Integer> getToQuoteList() { |
|
|
ArrayList<Integer> getToQuoteList() { |
|
@ -137,6 +136,10 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
this.deleteTask = deleteTask; |
|
|
this.deleteTask = deleteTask; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void prepareForPrepareForEdit(TopicActivity.PrepareForEdit prepareForEditTask) { |
|
|
|
|
|
this.prepareForEditTask = prepareForEditTask; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void prepareForEdit(TopicActivity.EditTask editTask, String commitEditURL, String numReplies, String seqnum, String sc, |
|
|
void prepareForEdit(TopicActivity.EditTask editTask, String commitEditURL, String numReplies, String seqnum, String sc, |
|
|
String topic, String postText) { |
|
|
String topic, String postText) { |
|
|
this.commitEditURL = commitEditURL; |
|
|
this.commitEditURL = commitEditURL; |
|
@ -587,7 +590,7 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
|
|
holder.quickReply.getText().toString(), numReplies, seqnum, sc, topic)); |
|
|
holder.quickReply.getText().toString(), numReplies, seqnum, sc, topic)); |
|
|
|
|
|
|
|
|
holder.quickReplySubject.getText().clear(); |
|
|
holder.quickReplySubject.getText().clear(); |
|
|
//holder.quickReplySubject.setText("Re: " + topicTitle);
|
|
|
holder.quickReplySubject.setText(postsList.get(position).getSubject()); |
|
|
holder.quickReply.getText().clear(); |
|
|
holder.quickReply.getText().clear(); |
|
|
holder.submitButton.setEnabled(true); |
|
|
holder.submitButton.setEnabled(true); |
|
|
} |
|
|
} |
|
|