verifyDataFromUser() cleanup
This commit is contained in:
parent
5ea77c26eb
commit
5204fdbab2
@ -42,9 +42,7 @@ class SharedViewModel(application: Application): AndroidViewModel(application) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun verifyDataFromUser(title: String, description: String): Boolean {
|
fun verifyDataFromUser(title: String, description: String): Boolean {
|
||||||
return if(TextUtils.isEmpty(title) || TextUtils.isEmpty(description)){
|
return !(title.isEmpty() || description.isEmpty())
|
||||||
false
|
|
||||||
} else !(title.isEmpty() || description.isEmpty())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun parsePriority(priority: String): Priority {
|
fun parsePriority(priority: String): Priority {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user