Hide photo/mic options on whitespace entry

Fixes #7204
This commit is contained in:
Moxie Marlinspike 2017-11-19 16:53:12 -08:00
parent 08c72ed874
commit be6a51b123

View File

@ -1742,7 +1742,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void updateToggleButtonState() {
if (composeText.getTextTrimmed().length() == 0 && !attachmentManager.isAttachmentPresent()) {
if (composeText.getText().length() == 0 && !attachmentManager.isAttachmentPresent()) {
buttonToggle.display(attachButton);
quickAttachmentToggle.show();
} else {