Updated on 2026-08-14

This commit is contained in:
Tangem 2021-09-09 21:45:12 +03:00
parent c938b9fbe3
commit 3545b45743
3 changed files with 10 additions and 1 deletions

View file

@ -13,7 +13,11 @@ val navigationMiddleware: Middleware<AppState> = { dispatch, state ->
val navState = state()?.navigationState
when (action) {
is NavigationAction.NavigateTo -> {
navState?.activity?.get()?.openFragment(action.screen, action.addToBackstack)
navState?.activity?.get()?.openFragment(
action.screen,
action.addToBackstack,
action.fragmentShareTransition
)
}
is NavigationAction.PopBackTo -> {
if (action.screen == AppScreen.Home) {

View file

@ -23,6 +23,8 @@ open class IndeterminateProgressButtonWidget(
changeState(initialState)
}
override val mainView: View = button
override fun changeState(state: WidgetState) {
val progressState = state as? ProgressState ?: return

View file

@ -1,5 +1,7 @@
package com.tangem.tap.common.toggleWidget
import android.view.View
/**
[REDACTED_AUTHOR]
@ -7,6 +9,7 @@ package com.tangem.tap.common.toggleWidget
interface WidgetState
interface ViewStateWidget {
val mainView: View
fun changeState(state: WidgetState)
}