|
|
|
@ -455,8 +455,12 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
|
|
|
|
List<Attachment> attachmentList = statusList.get(position).media_attachments;
|
|
|
|
|
if (attachmentList != null && attachmentList.size() > 0) {
|
|
|
|
|
holder.binding.sensitiveMedia.setVisibility(View.VISIBLE);
|
|
|
|
|
holder.binding.sensitiveMedia.setChecked(currentAccount.mastodon_account.source.sensitive);
|
|
|
|
|
statusList.get(position).sensitive = currentAccount.mastodon_account.source.sensitive;
|
|
|
|
|
if (currentAccount.mastodon_account.source != null) {
|
|
|
|
|
holder.binding.sensitiveMedia.setChecked(currentAccount.mastodon_account.source.sensitive);
|
|
|
|
|
statusList.get(position).sensitive = currentAccount.mastodon_account.source.sensitive;
|
|
|
|
|
} else {
|
|
|
|
|
statusList.get(position).sensitive = false;
|
|
|
|
|
}
|
|
|
|
|
holder.binding.sensitiveMedia.setOnCheckedChangeListener((buttonView, isChecked) -> statusList.get(position).sensitive = isChecked);
|
|
|
|
|
int mediaPosition = 0;
|
|
|
|
|
for (Attachment attachment : attachmentList) {
|
|
|
|
|