Updated on 2026-08-14
This commit is contained in:
parent
d8c5f217bb
commit
0225de915a
5 changed files with 12 additions and 8 deletions
|
|
@ -127,7 +127,9 @@ internal class DetailsViewModel(
|
|||
}
|
||||
|
||||
private fun navigateToTesterMenu() {
|
||||
store.state.daggerGraphState.testerRouter?.startTesterScreen()
|
||||
store.dispatchNavigationAction {
|
||||
push(AppRoute.TesterMenu)
|
||||
}
|
||||
}
|
||||
|
||||
private fun navigateToToS() {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import com.tangem.feature.swap.presentation.SwapFragment
|
|||
import com.tangem.features.details.component.DetailsComponent
|
||||
import com.tangem.features.send.api.navigation.SendRouter
|
||||
import com.tangem.features.staking.api.navigation.StakingRouter
|
||||
import com.tangem.features.tester.api.TesterRouter
|
||||
import com.tangem.features.tokendetails.navigation.TokenDetailsRouter
|
||||
import com.tangem.features.wallet.navigation.WalletRouter
|
||||
import com.tangem.tap.features.customtoken.impl.presentation.AddCustomTokenFragment
|
||||
|
|
@ -43,6 +44,7 @@ internal class ChildFactory @Inject constructor(
|
|||
private val walletRouter: WalletRouter,
|
||||
private val qrScanningRouter: QrScanningRouter,
|
||||
private val stakingRouter: StakingRouter,
|
||||
private val testerRouter: TesterRouter,
|
||||
) {
|
||||
|
||||
@Suppress("LongMethod", "CyclomaticComplexMethod")
|
||||
|
|
@ -133,7 +135,7 @@ internal class ChildFactory @Inject constructor(
|
|||
route.asFragmentChild(Provider { WelcomeFragment() })
|
||||
}
|
||||
is AppRoute.TesterMenu -> {
|
||||
TODO("Will be implemented later")
|
||||
Child.LegacyIntent(testerRouter.getEntryIntent())
|
||||
}
|
||||
is AppRoute.Staking -> {
|
||||
route.asFragmentChild(Provider { stakingRouter.getEntryFragment() })
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ internal class DetailsRouter @Inject constructor(
|
|||
feedbackManager.sendEmail(FeedbackType.Feedback)
|
||||
}
|
||||
is DetailsRoute.TesterMenu -> {
|
||||
testerRouter.startTesterScreen()
|
||||
// testerRouter.startTesterScreen()
|
||||
}
|
||||
is DetailsRoute.Url -> {
|
||||
urlOpener.openUrl(route.url)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
package com.tangem.features.tester.api
|
||||
|
||||
import android.content.Intent
|
||||
|
||||
/**
|
||||
* Outer tester feature router
|
||||
*
|
||||
|
|
@ -8,5 +10,5 @@ package com.tangem.features.tester.api
|
|||
interface TesterRouter {
|
||||
|
||||
/** Open tester menu */
|
||||
fun startTesterScreen()
|
||||
fun getEntryIntent(): Intent
|
||||
}
|
||||
|
|
@ -22,10 +22,8 @@ internal class DefaultTesterRouter @Inject constructor(
|
|||
|
||||
private var navController: NavController? = null
|
||||
|
||||
override fun startTesterScreen() {
|
||||
context.startActivity(
|
||||
Intent(context, TesterActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
|
||||
)
|
||||
override fun getEntryIntent(): Intent {
|
||||
return Intent(context, TesterActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
}
|
||||
|
||||
override fun setNavController(navController: NavController) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue