1
0
Fork 0

For #6543 Hide keyboard when saving a new bookmarks folder

master
mcarare 2019-11-12 11:56:32 +02:00 committed by Emily Kager
parent f0468f8099
commit 13637c59a2
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import kotlinx.coroutines.Dispatchers.Main
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import mozilla.appservices.places.BookmarkRoot
import mozilla.components.support.ktx.android.view.hideKeyboard
import org.mozilla.fenix.R
import org.mozilla.fenix.components.metrics.Event
import org.mozilla.fenix.ext.nav
@ -88,6 +89,7 @@ class AddBookmarkFolderFragment : Fragment(R.layout.fragment_edit_bookmark) {
getString(R.string.bookmark_empty_title_error)
return true
}
this.view?.hideKeyboard()
lifecycleScope.launch(IO) {
val newGuid = requireComponents.core.bookmarksStorage.addFolder(
sharedViewModel.selectedFolder!!.guid, bookmarkNameEdit.text.toString(), null