From 7797e3c9c99327d2a4313361e7fd82b31f687448 Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Sun, 17 May 2020 20:11:47 +0100 Subject: [PATCH] Fix lost trimming --- app/src/main/java/es/eoinrul/ecwt/TrainingActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/es/eoinrul/ecwt/TrainingActivity.kt b/app/src/main/java/es/eoinrul/ecwt/TrainingActivity.kt index d825267..4bb21cd 100644 --- a/app/src/main/java/es/eoinrul/ecwt/TrainingActivity.kt +++ b/app/src/main/java/es/eoinrul/ecwt/TrainingActivity.kt @@ -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)