mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/23841: Hide keyboard when selecting month or year
This commit is contained in:
parent
ba916dead1
commit
9aefc0d2a8
@ -4,6 +4,7 @@
|
||||
|
||||
package org.mozilla.fenix.settings.creditcards
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.DialogInterface
|
||||
import android.os.Bundle
|
||||
import android.view.Menu
|
||||
@ -56,6 +57,7 @@ class CreditCardEditorFragment :
|
||||
|
||||
private lateinit var interactor: CreditCardEditorInteractor
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
@ -81,11 +83,21 @@ class CreditCardEditorFragment :
|
||||
creditCardEditorView = CreditCardEditorView(binding, interactor)
|
||||
creditCardEditorView.bind(creditCardEditorState)
|
||||
|
||||
binding.cardNumberInput.apply {
|
||||
binding.apply {
|
||||
cardNumberInput.apply {
|
||||
requestFocus()
|
||||
placeCursorAtEnd()
|
||||
showKeyboard()
|
||||
}
|
||||
expiryMonthDropDown.setOnTouchListener { view, _ ->
|
||||
view?.hideKeyboard()
|
||||
false
|
||||
}
|
||||
expiryYearDropDown.setOnTouchListener { view, _ ->
|
||||
view?.hideKeyboard()
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user