|
|
@ -32,7 +32,9 @@ import kotlinx.coroutines.withContext
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.components.FenixSnackbar
|
|
|
|
import org.mozilla.fenix.components.FenixSnackbar
|
|
|
|
import org.mozilla.fenix.components.metrics.Event
|
|
|
|
import org.mozilla.fenix.components.metrics.Event
|
|
|
|
|
|
|
|
import org.mozilla.fenix.ext.checkAndUpdateScreenshotPermission
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
|
|
|
|
import org.mozilla.fenix.ext.settings
|
|
|
|
import org.mozilla.fenix.ext.showToolbar
|
|
|
|
import org.mozilla.fenix.ext.showToolbar
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -50,7 +52,7 @@ class SavedLoginSiteInfoFragment : Fragment(R.layout.fragment_saved_login_site_i
|
|
|
|
override fun onPause() {
|
|
|
|
override fun onPause() {
|
|
|
|
// If we pause this fragment, we want to pop users back to reauth
|
|
|
|
// If we pause this fragment, we want to pop users back to reauth
|
|
|
|
if (findNavController().currentDestination?.id != R.id.savedLoginsFragment) {
|
|
|
|
if (findNavController().currentDestination?.id != R.id.savedLoginsFragment) {
|
|
|
|
activity?.window?.clearFlags(WindowManager.LayoutParams.FLAG_SECURE)
|
|
|
|
activity?.let { it.checkAndUpdateScreenshotPermission(it.settings()) }
|
|
|
|
findNavController().popBackStack(R.id.loginsFragment, false)
|
|
|
|
findNavController().popBackStack(R.id.loginsFragment, false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
super.onPause()
|
|
|
|
super.onPause()
|
|
|
|