diff --git a/app/src/main/java/org/mozilla/fenix/settings/creditcards/CreditCardEditorFragment.kt b/app/src/main/java/org/mozilla/fenix/settings/creditcards/CreditCardEditorFragment.kt index 34592095f..053a6e541 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/creditcards/CreditCardEditorFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/creditcards/CreditCardEditorFragment.kt @@ -15,6 +15,7 @@ import androidx.navigation.fragment.navArgs import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext +import mozilla.components.support.ktx.android.view.hideKeyboard import org.mozilla.fenix.R import org.mozilla.fenix.SecureFragment import org.mozilla.fenix.databinding.FragmentCreditCardEditorBinding @@ -82,10 +83,11 @@ class CreditCardEditorFragment : SecureFragment(R.layout.fragment_credit_card_ed } /** - * Close any open dialogs or menus and reauthenticate if the fragment is paused and - * the user is not navigating to [CreditCardsManagementFragment]. + * Close the keyboard, any open dialogs or menus and then reauthenticate if the + * fragment is paused and the user is not navigating to [CreditCardsManagementFragment]. */ override fun onPause() { + view?.hideKeyboard() menu.close() redirectToReAuth(