fix wrong "hasSpoiler" value on restore

closes sk22#324
This commit is contained in:
sk 2023-01-21 23:06:31 +01:00 committed by LucasGGamerM
parent 55640dddb9
commit 55a2ae8748
1 changed files with 1 additions and 0 deletions

View File

@ -426,6 +426,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
spoilerBg.setDrawableByLayerId(R.id.right_drawable, new SpoilerStripesDrawable());
spoilerEdit.setBackground(spoilerBg);
if((savedInstanceState!=null && savedInstanceState.getBoolean("hasSpoiler", false)) || hasSpoiler){
hasSpoiler=true;
spoilerEdit.setVisibility(View.VISIBLE);
spoilerBtn.setSelected(true);
}else if(editingStatus!=null && !TextUtils.isEmpty(editingStatus.spoilerText)){