Updated on 2026-08-14
This commit is contained in:
parent
c938b9fbe3
commit
3545b45743
3 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue