Fixes content warning text box hiding after configuration changes.
This commit is contained in:
parent
99c621c8d1
commit
79f067caf4
|
@ -363,12 +363,13 @@ public class ComposeActivity extends BaseActivity {
|
||||||
});
|
});
|
||||||
|
|
||||||
String startingVisibility;
|
String startingVisibility;
|
||||||
|
boolean startingHideText;
|
||||||
ArrayList<SavedQueuedMedia> savedMediaQueued = null;
|
ArrayList<SavedQueuedMedia> savedMediaQueued = null;
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
showMarkSensitive = savedInstanceState.getBoolean("showMarkSensitive");
|
showMarkSensitive = savedInstanceState.getBoolean("showMarkSensitive");
|
||||||
startingVisibility = savedInstanceState.getString("statusVisibility");
|
startingVisibility = savedInstanceState.getString("statusVisibility");
|
||||||
statusMarkSensitive = savedInstanceState.getBoolean("statusMarkSensitive");
|
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.
|
// Keep these until everything needed to put them in the queue is finished initializing.
|
||||||
savedMediaQueued = savedInstanceState.getParcelableArrayList("savedMediaQueued");
|
savedMediaQueued = savedInstanceState.getParcelableArrayList("savedMediaQueued");
|
||||||
// These are for restoring an in-progress commit content operation.
|
// These are for restoring an in-progress commit content operation.
|
||||||
|
@ -382,7 +383,7 @@ public class ComposeActivity extends BaseActivity {
|
||||||
showMarkSensitive = false;
|
showMarkSensitive = false;
|
||||||
startingVisibility = preferences.getString("rememberedVisibility", "public");
|
startingVisibility = preferences.getString("rememberedVisibility", "public");
|
||||||
statusMarkSensitive = false;
|
statusMarkSensitive = false;
|
||||||
statusHideText = false;
|
startingHideText = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusMarkSensitive) {
|
if (statusMarkSensitive) {
|
||||||
|
@ -472,7 +473,7 @@ public class ComposeActivity extends BaseActivity {
|
||||||
@Override
|
@Override
|
||||||
public void afterTextChanged(Editable s) {}
|
public void afterTextChanged(Editable s) {}
|
||||||
});
|
});
|
||||||
showContentWarning(false);
|
showContentWarning(startingHideText);
|
||||||
|
|
||||||
statusAlreadyInFlight = false;
|
statusAlreadyInFlight = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue