1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-08 06:29:34 +01:00
This commit is contained in:
Mariotaku Lee 2016-12-18 10:38:43 +08:00
parent 8398953ec8
commit 38f6e280cd

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