|
|
@ -13,7 +13,6 @@ import androidx.navigation.NavOptions
|
|
|
|
import androidx.navigation.fragment.NavHostFragment.findNavController
|
|
|
|
import androidx.navigation.fragment.NavHostFragment.findNavController
|
|
|
|
import androidx.navigation.fragment.findNavController
|
|
|
|
import androidx.navigation.fragment.findNavController
|
|
|
|
import mozilla.components.concept.base.crash.Breadcrumb
|
|
|
|
import mozilla.components.concept.base.crash.Breadcrumb
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
|
|
|
|
import org.mozilla.fenix.NavHostActivity
|
|
|
|
import org.mozilla.fenix.NavHostActivity
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.components.Components
|
|
|
|
import org.mozilla.fenix.components.Components
|
|
|
@ -66,7 +65,6 @@ fun Fragment.hideToolbar() {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
fun Fragment.redirectToReAuth(destinations: List<Int>, currentDestination: Int?) {
|
|
|
|
fun Fragment.redirectToReAuth(destinations: List<Int>, currentDestination: Int?) {
|
|
|
|
(activity as? HomeActivity)?.updateSecureWindowFlags()
|
|
|
|
|
|
|
|
if (currentDestination !in destinations) {
|
|
|
|
if (currentDestination !in destinations) {
|
|
|
|
findNavController().popBackStack(R.id.savedLoginsAuthFragment, false)
|
|
|
|
findNavController().popBackStack(R.id.savedLoginsAuthFragment, false)
|
|
|
|
}
|
|
|
|
}
|
|
|
|