Retain CWs but expand them when showCWs setting is off

#323, closes #87
This commit is contained in:
Grishka 2023-10-11 00:27:26 +03:00
parent 2df1b7dd61
commit 4dea7d2a52
1 changed files with 2 additions and 2 deletions

View File

@ -125,11 +125,11 @@ public abstract class StatusDisplayItem{
items.add(spoilerItem);
contentItems=spoilerItem.contentItems;
status.spoilerRevealed=false;
}else if(!TextUtils.isEmpty(statusForContent.spoilerText) && AccountSessionManager.get(accountID).getLocalPreferences().showCWs){
}else if(!TextUtils.isEmpty(statusForContent.spoilerText)){
SpoilerStatusDisplayItem spoilerItem=new SpoilerStatusDisplayItem(parentID, fragment, null, status, statusForContent, Type.SPOILER);
items.add(spoilerItem);
contentItems=spoilerItem.contentItems;
status.spoilerRevealed=false;
status.spoilerRevealed=!AccountSessionManager.get(accountID).getLocalPreferences().showCWs;
}else{
contentItems=items;
}