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
pull/1/head
Andy Martin 10 years ago committed by Moxie Marlinspike
parent 224b06f05a
commit 7ab739b22b

@ -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();
}

Loading…
Cancel
Save