2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

Closes #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 110dd732e2
commit 6b4c160d18

View File

@ -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) {