2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-17 15:26:23 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/25980: Replace deprecated popUpTo var.

This commit is contained in:
mcarare 2022-07-12 09:38:36 +03:00 committed by mergify[bot]
parent 41b0110313
commit a935dda783
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ class StartSearchIntentProcessor : HomeIntentProcessor {
}
directions?.let {
val options = navOptions {
popUpTo = R.id.homeFragment
popUpTo(R.id.homeFragment)
}
navController.nav(null, it, options)
}

View File

@ -41,7 +41,7 @@ private data class EqNavDirectionsMatcher(private val value: NavDirections) : Ma
private data class EqNavOptionsMatcher(private val value: NavOptions) : Matcher<NavOptions> {
override fun match(arg: NavOptions?): Boolean =
value.popUpTo == arg?.popUpTo && value.isPopUpToInclusive == arg.isPopUpToInclusive
value.popUpToId == arg?.popUpToId && value.isPopUpToInclusive() == arg.isPopUpToInclusive()
override fun substitute(map: Map<Any, Any>) =
copy(value = value.internalSubstitute(map))

View File

@ -58,7 +58,7 @@ class StartSearchIntentProcessorTest {
}
StartSearchIntentProcessor().process(intent, navController, out)
val options = navOptions {
popUpTo = R.id.homeFragment
popUpTo(R.id.homeFragment)
}
assertNotNull(SearchWidget.newTabButton.testGetValue())