diff --git a/app/src/main/java/ani/dantotsu/util/MarkdownCreatorActivity.kt b/app/src/main/java/ani/dantotsu/util/MarkdownCreatorActivity.kt index 27b9418583..fd4094b917 100644 --- a/app/src/main/java/ani/dantotsu/util/MarkdownCreatorActivity.kt +++ b/app/src/main/java/ani/dantotsu/util/MarkdownCreatorActivity.kt @@ -65,6 +65,10 @@ class MarkdownCreatorActivity : AppCompatActivity() { } binding.createButton.setOnClickListener { + if (text.isBlank()) { + toast(getString(R.string.cannot_be_empty)) + return@setOnClickListener + } launchIO { val success = when (type) { "activity" -> Anilist.mutation.postActivity(text) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2bc13d31fb..09dee57c09 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -984,4 +984,5 @@ Non quae tempore quo provident laudantium qui illo dolor vel quia dolor et exerc Create New Review Create Preview + Text cannot be empty