Added check if text in compose toot field has only whitespaces (#1193)
This commit is contained in:
parent
fb2d3024ab
commit
8a6b439408
1 changed files with 1 additions and 1 deletions
|
@ -1016,7 +1016,7 @@ public final class ComposeActivity
|
||||||
spoilerText = contentWarningEditor.getText().toString();
|
spoilerText = contentWarningEditor.getText().toString();
|
||||||
}
|
}
|
||||||
int characterCount = calculateTextLength();
|
int characterCount = calculateTextLength();
|
||||||
if (characterCount <= 0 && mediaQueued.size() == 0) {
|
if ((characterCount <= 0 || contentText.trim().length() <= 0) && mediaQueued.size() == 0) {
|
||||||
textEditor.setError(getString(R.string.error_empty));
|
textEditor.setError(getString(R.string.error_empty));
|
||||||
enableButtons();
|
enableButtons();
|
||||||
} else if (characterCount <= maximumTootCharacters) {
|
} else if (characterCount <= maximumTootCharacters) {
|
||||||
|
|
Loading…
Reference in a new issue