@ -15,6 +15,7 @@ import androidx.navigation.fragment.navArgs
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withContext
import mozilla.components.support.ktx.android.view.hideKeyboard
import org.mozilla.fenix.R
import org.mozilla.fenix.R
import org.mozilla.fenix.SecureFragment
import org.mozilla.fenix.SecureFragment
import org.mozilla.fenix.databinding.FragmentCreditCardEditorBinding
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
* Close the keyboard , any open dialogs or menus and then reauthenticate if the
* the user is not navigating to [ CreditCardsManagementFragment ] .
* fragment is paused and the user is not navigating to [ CreditCardsManagementFragment ] .
* /
* /
override fun onPause ( ) {
override fun onPause ( ) {
view ?. hideKeyboard ( )
menu . close ( )
menu . close ( )
redirectToReAuth (
redirectToReAuth (