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:
parent
41b0110313
commit
a935dda783
@ -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)
|
||||
}
|
||||
|
@ -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))
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user