|
@ -16,7 +16,6 @@ import android.support.v4.content.res.ResourcesCompat; |
|
|
import android.support.v7.widget.CardView; |
|
|
import android.support.v7.widget.CardView; |
|
|
import android.support.v7.widget.RecyclerView; |
|
|
import android.support.v7.widget.RecyclerView; |
|
|
import android.text.TextUtils; |
|
|
import android.text.TextUtils; |
|
|
import android.util.Log; |
|
|
|
|
|
import android.view.LayoutInflater; |
|
|
import android.view.LayoutInflater; |
|
|
import android.view.MotionEvent; |
|
|
import android.view.MotionEvent; |
|
|
import android.view.View; |
|
|
import android.view.View; |
|
@ -388,18 +387,14 @@ class TopicAdapter extends RecyclerView.Adapter<TopicAdapter.MyViewHolder> { |
|
|
@Override |
|
|
@Override |
|
|
public void onClick(View view) { |
|
|
public void onClick(View view) { |
|
|
boolean[] tmp = viewProperties.get(holder.getAdapterPosition()); |
|
|
boolean[] tmp = viewProperties.get(holder.getAdapterPosition()); |
|
|
Log.d(TAG, "GOT"); |
|
|
|
|
|
if (tmp[isQuoteButtonChecked]) { |
|
|
if (tmp[isQuoteButtonChecked]) { |
|
|
if (toQuoteList.contains(currentPost.getPostNumber())) { |
|
|
if (toQuoteList.contains(currentPost.getPostNumber())) { |
|
|
toQuoteList.remove(toQuoteList.indexOf(currentPost.getPostNumber())); |
|
|
toQuoteList.remove(toQuoteList.indexOf(currentPost.getPostNumber())); |
|
|
Log.d(TAG, "GOT1"); |
|
|
|
|
|
} else |
|
|
} else |
|
|
Log.d(TAG, "GOT2"); |
|
|
Report.i(TAG, "An error occurred while trying to exclude post from" + |
|
|
//Report.i(TAG, "An error occurred while trying to exclude post from" +
|
|
|
"toQuoteList, post wasn't there!"); |
|
|
// "toQuoteList, post wasn't there!");
|
|
|
|
|
|
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_unchecked); |
|
|
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_unchecked); |
|
|
} else { |
|
|
} else { |
|
|
Log.d(TAG, "GOT3"); |
|
|
|
|
|
toQuoteList.add(currentPost.getPostNumber()); |
|
|
toQuoteList.add(currentPost.getPostNumber()); |
|
|
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_checked); |
|
|
holder.quoteToggle.setImageResource(R.drawable.ic_format_quote_checked); |
|
|
} |
|
|
} |
|
|