google-developer-training / advanced-android-testing

Android Testing Codelab

Home Page:https://codelabs.developers.google.com/codelabs/android-testing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid creating tasks with empty title and description

jsericksk opened this issue · comments

It is possible to create tasks even leaving the title and description empty, with blank spaces. It could be fixed by adding trim() in the Task class:

val isEmpty
        get() = title.trim().isEmpty() || description.trim().isEmpty()

ezgif-1-10b98ac122