mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-19 02:13:57 +00:00
fix: blank text check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user