From 55a2ae874831c17882206137b22ba0a01d4cd8c2 Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 21 Jan 2023 23:06:31 +0100 Subject: [PATCH] fix wrong "hasSpoiler" value on restore closes sk22#324 --- .../java/org/joinmastodon/android/fragments/ComposeFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index c72d7e982..e00cfc671 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -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)){