1
0
Fork 0

Fix lost trimming

This commit is contained in:
Eoin Mcloughlin 2020-05-17 20:11:47 +01:00
parent 9eae4e61e0
commit 7797e3c9c9

View file

@ -61,7 +61,7 @@ class TrainingActivity : AppCompatActivity(),
// The lesson text has an extra space at the end, which we don't want to grade
var lessonText = mLessonText.trim()
// The input text has a leading space that we don't want to grade
var inputText = mEnteredTextView.text.toString()
var inputText = mEnteredTextView.text.toString().trim()
val intent = Intent(activityContext, TrainingResultsActivity::class.java).apply {
putExtra(TRAINING_ANSWER, lessonText)