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
fork-5.53.8
Andy Martin 2015-02-14 18:29:11 -08:00 zatwierdzone przez Moxie Marlinspike
rodzic 224b06f05a
commit 7ab739b22b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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