mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-17 18:50:08 +03:00
Release 3.0.5
This commit is contained in:
parent
39f3fe8601
commit
9d42d717cc
2 changed files with 8 additions and 4 deletions
|
@ -9,8 +9,8 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdk 21
|
minSdk 21
|
||||||
targetSdk 31
|
targetSdk 31
|
||||||
versionCode 394
|
versionCode 395
|
||||||
versionName "3.0.3"
|
versionName "3.0.5"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
|
|
|
@ -455,8 +455,12 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
List<Attachment> attachmentList = statusList.get(position).media_attachments;
|
List<Attachment> attachmentList = statusList.get(position).media_attachments;
|
||||||
if (attachmentList != null && attachmentList.size() > 0) {
|
if (attachmentList != null && attachmentList.size() > 0) {
|
||||||
holder.binding.sensitiveMedia.setVisibility(View.VISIBLE);
|
holder.binding.sensitiveMedia.setVisibility(View.VISIBLE);
|
||||||
|
if (currentAccount.mastodon_account.source != null) {
|
||||||
holder.binding.sensitiveMedia.setChecked(currentAccount.mastodon_account.source.sensitive);
|
holder.binding.sensitiveMedia.setChecked(currentAccount.mastodon_account.source.sensitive);
|
||||||
statusList.get(position).sensitive = 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);
|
holder.binding.sensitiveMedia.setOnCheckedChangeListener((buttonView, isChecked) -> statusList.get(position).sensitive = isChecked);
|
||||||
int mediaPosition = 0;
|
int mediaPosition = 0;
|
||||||
for (Attachment attachment : attachmentList) {
|
for (Attachment attachment : attachmentList) {
|
||||||
|
|
Loading…
Reference in a new issue