NotificationsAdapter: apply same fix as 30b2349e2b

main
Alibek Omarov 4 years ago
parent 987db39d2c
commit 17f5ad1146
  1. 10
      app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java

@ -671,13 +671,13 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
Context context = replyInfo.getContext(); Context context = replyInfo.getContext();
String replyToAccount = statusViewData.getInReplyToAccountAcct(); String replyToAccount = statusViewData.getInReplyToAccountAcct();
replyInfo.setText(context.getString(R.string.status_replied_to_format, replyToAccount)); replyInfo.setText(context.getString(R.string.status_replied_to_format, replyToAccount));
if (statusViewData.getParentVisible() == false) if (!statusViewData.getParentVisible()) {
replyInfo.setPaintFlags(replyInfo.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); replyInfo.setPaintFlags(replyInfo.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
else replyInfo.setOnClickListener(null);
} else {
replyInfo.setPaintFlags(replyInfo.getPaintFlags() & (~Paint.STRIKE_THRU_TEXT_FLAG)); replyInfo.setPaintFlags(replyInfo.getPaintFlags() & (~Paint.STRIKE_THRU_TEXT_FLAG));
replyInfo.setOnClickListener(v -> notificationActionListener.onViewReplyTo(getAdapterPosition()));
replyInfo.setOnClickListener(v -> notificationActionListener.onViewReplyTo(getAdapterPosition())); }
replyInfo.setVisibility(View.VISIBLE); replyInfo.setVisibility(View.VISIBLE);
} else { } else {
replyInfo.setVisibility(View.GONE); replyInfo.setVisibility(View.GONE);

Loading…
Cancel
Save