From 669ddbca83667dcb5f82a3d0834d0e5191d639f3 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Tue, 16 Jul 2019 10:23:19 -0700 Subject: [PATCH] [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/4080 - Trim New Bookmark Folder Title Text --- .../library/bookmarks/addfolder/AddBookmarkFolderFragment.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/library/bookmarks/addfolder/AddBookmarkFolderFragment.kt b/app/src/main/java/org/mozilla/fenix/library/bookmarks/addfolder/AddBookmarkFolderFragment.kt index 9c072d964d..96cf8ce3e0 100644 --- a/app/src/main/java/org/mozilla/fenix/library/bookmarks/addfolder/AddBookmarkFolderFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/library/bookmarks/addfolder/AddBookmarkFolderFragment.kt @@ -77,8 +77,9 @@ class AddBookmarkFolderFragment : Fragment() { override fun onOptionsItemSelected(item: MenuItem): Boolean { return when (item.itemId) { R.id.confirm_add_folder_button -> { - if (bookmark_add_folder_title_edit.text.isNullOrEmpty()) { - bookmark_add_folder_title_edit.error = getString(R.string.bookmark_empty_title_error) + if (bookmark_add_folder_title_edit.text.isNullOrBlank()) { + bookmark_add_folder_title_edit.error = + getString(R.string.bookmark_empty_title_error) return true } lifecycleScope.launch(IO) {