This commit is contained in:
Mariotaku Lee 2016-12-18 10:38:43 +08:00
parent 8398953ec8
commit 38f6e280cd
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener
}
override fun onDestroy() {
if (!shouldSkipDraft && hasComposingStatus()) {
if (!shouldSkipDraft && hasComposingStatus() && isFinishing) {
saveToDrafts()
Toast.makeText(this, R.string.status_saved_to_draft, Toast.LENGTH_SHORT).show()
}