Commit 23809d2b authored by mcarare's avatar mcarare Committed by Mihai Adrian Carare
Browse files

For #18312: Do not update secure flag on pausing logins fragments.

The flags are already properly set for activity and thus for other fragments.

(cherry picked from commit 8c519994)
parent cd1b4138
......@@ -13,7 +13,6 @@ import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment.findNavController
import androidx.navigation.fragment.findNavController
import mozilla.components.concept.base.crash.Breadcrumb
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.NavHostActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.components.Components
......@@ -66,7 +65,6 @@ fun Fragment.hideToolbar() {
fun Fragment.redirectToReAuth(destinations: List<Int>, currentDestination: Int?) {
(activity as? HomeActivity)?.updateSecureWindowFlags()
if (currentDestination !in destinations) {
findNavController().popBackStack(, false)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment