diff --git a/app/src/main/kotlin/jackall/moncalc/viewmodel/FruitAnalyzeItemViewModel.kt b/app/src/main/kotlin/jackall/moncalc/viewmodel/FruitAnalyzeItemViewModel.kt index f5a8c94..1fd1fea 100644 --- a/app/src/main/kotlin/jackall/moncalc/viewmodel/FruitAnalyzeItemViewModel.kt +++ b/app/src/main/kotlin/jackall/moncalc/viewmodel/FruitAnalyzeItemViewModel.kt @@ -14,5 +14,5 @@ var grade4: String = "", var grade5: String = "" ) : ViewModel() { - fun isEmpty() = grade0.isBlank() and grade1.isBlank() and grade2.isBlank() and grade3.isBlank() and grade4.isBlank() and grade5.isBlank() + fun count() = grade0.toInt() + grade1.toInt() + grade2.toInt() + grade3.toInt() + grade4.toInt() + grade5.toInt() } \ No newline at end of file