From 79f067caf48fee0729ab510edc534c4dd65d0bde Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 26 Mar 2017 19:37:32 -0400 Subject: [PATCH] Fixes content warning text box hiding after configuration changes. --- .../main/java/com/keylesspalace/tusky/ComposeActivity.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 9c2fa6119..2f44a9331 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -363,12 +363,13 @@ public class ComposeActivity extends BaseActivity { }); String startingVisibility; + boolean startingHideText; ArrayList savedMediaQueued = null; if (savedInstanceState != null) { showMarkSensitive = savedInstanceState.getBoolean("showMarkSensitive"); startingVisibility = savedInstanceState.getString("statusVisibility"); statusMarkSensitive = savedInstanceState.getBoolean("statusMarkSensitive"); - statusHideText = savedInstanceState.getBoolean("statusHideText"); + startingHideText = savedInstanceState.getBoolean("statusHideText"); // Keep these until everything needed to put them in the queue is finished initializing. savedMediaQueued = savedInstanceState.getParcelableArrayList("savedMediaQueued"); // These are for restoring an in-progress commit content operation. @@ -382,7 +383,7 @@ public class ComposeActivity extends BaseActivity { showMarkSensitive = false; startingVisibility = preferences.getString("rememberedVisibility", "public"); statusMarkSensitive = false; - statusHideText = false; + startingHideText = false; } if (statusMarkSensitive) { @@ -472,7 +473,7 @@ public class ComposeActivity extends BaseActivity { @Override public void afterTextChanged(Editable s) {} }); - showContentWarning(false); + showContentWarning(startingHideText); statusAlreadyInFlight = false;