No issue: Check destination before popping logins fragments
This commit is contained in:
parent
fdd7400ccc
commit
ddd484387d
|
@ -28,7 +28,9 @@ class SavedLoginSiteInfoFragment : Fragment(R.layout.fragment_saved_login_site_i
|
|||
|
||||
override fun onPause() {
|
||||
// If we pause this fragment, we want to pop users back to reauth
|
||||
findNavController().popBackStack(R.id.loginsFragment, false)
|
||||
if (findNavController().currentDestination?.id != R.id.savedLoginsFragment) {
|
||||
findNavController().popBackStack(R.id.loginsFragment, false)
|
||||
}
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,9 @@ class SavedLoginsFragment : Fragment() {
|
|||
|
||||
override fun onPause() {
|
||||
// If we pause this fragment, we want to pop users back to reauth
|
||||
findNavController().popBackStack(R.id.loginsFragment, false)
|
||||
if (findNavController().currentDestination?.id != R.id.savedLoginSiteInfoFragment) {
|
||||
findNavController().popBackStack(R.id.loginsFragment, false)
|
||||
}
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user