2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/4080 - Trim New Bookmark Folder Title Text

This commit is contained in:
Emily Kager 2019-07-16 10:23:19 -07:00 committed by Emily Kager
parent d7da01235a
commit 669ddbca83

View File

@ -77,8 +77,9 @@ class AddBookmarkFolderFragment : Fragment() {
override fun onOptionsItemSelected(item: MenuItem): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) { return when (item.itemId) {
R.id.confirm_add_folder_button -> { R.id.confirm_add_folder_button -> {
if (bookmark_add_folder_title_edit.text.isNullOrEmpty()) { if (bookmark_add_folder_title_edit.text.isNullOrBlank()) {
bookmark_add_folder_title_edit.error = getString(R.string.bookmark_empty_title_error) bookmark_add_folder_title_edit.error =
getString(R.string.bookmark_empty_title_error)
return true return true
} }
lifecycleScope.launch(IO) { lifecycleScope.launch(IO) {