clear the current text box when deleting a draft-only thread.

otherwise the draft will be immediately re-saved (preventing
thread deletion).

// FREEBIE

Closes #2474
Fixes #2473
This commit is contained in:
Andy Martin 2015-02-14 18:29:11 -08:00 committed by Moxie Marlinspike
parent 224b06f05a
commit 7ab739b22b

View File

@ -535,6 +535,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
public void onClick(DialogInterface dialog, int which) {
if (threadId > 0) {
DatabaseFactory.getThreadDatabase(ConversationActivity.this).deleteConversation(threadId);
composeText.getText().clear();
threadId = -1;
finish();
}