For #25980: Replace deprecated popUpTo var.

pull/543/head
mcarare 2 years ago committed by mergify[bot]
parent 0ceeda92df
commit 2b8b6a9aca

@ -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…
Cancel
Save