Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #2160 - Hide Keyboard in onPause from EditBookmarkFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager committed Jul 17, 2019
1 parent 68dae52 commit 8381025
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -35,6 +35,7 @@ import mozilla.appservices.places.UrlParseFailed
import mozilla.components.concept.storage.BookmarkInfo
import mozilla.components.concept.storage.BookmarkNode
import mozilla.components.concept.storage.BookmarkNodeType
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.getColorFromAttr
Expand Down Expand Up @@ -120,6 +121,12 @@ class EditBookmarkFragment : Fragment() {
updateBookmarkFromObservableInput()
}

override fun onPause() {
super.onPause()
bookmark_name_edit.hideKeyboard()
bookmark_url_edit.hideKeyboard()
}

private fun updateBookmarkFromObservableInput() {
Observable.combineLatest(
bookmark_name_edit.textChanges().skipInitialValue(),
Expand Down

0 comments on commit 8381025

Please sign in to comment.