From 77bbd2dfb778008b46b5e2ad81efd50078743c71 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 21 Jul 2020 08:01:57 -0500 Subject: [PATCH] Fix title truncation --- .../main/java/com/todoroo/astrid/activity/TaskEditFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt b/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt index baaa5556b..0aed2c860 100755 --- a/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt +++ b/app/src/main/java/com/todoroo/astrid/activity/TaskEditFragment.kt @@ -137,8 +137,8 @@ class TaskEditFragment : Fragment(), Toolbar.OnMenuItemClickListener { title.setTextColor(themeColor.colorOnPrimary) title.setHintTextColor(themeColor.hintOnPrimary) title.maxLines = 5 - title.addTextChangedListener { text -> - editViewModel.title = text.toString().trim { it <= ' ' } + title.addTextChangedListener { + editViewModel.title = title.text.toString().trim { it <= ' ' } } if (model.isNew || preferences.getBoolean(R.string.p_hide_check_button, false)) { binding.fab.visibility = View.INVISIBLE