Updated on 2026-08-14
This commit is contained in:
parent
6dd7ed1909
commit
1ffdbd8b72
3 changed files with 53 additions and 20 deletions
|
|
@ -19,6 +19,16 @@ sealed class PredefinedValues {
|
|||
override val amount: String?,
|
||||
override val address: String,
|
||||
override val memo: String?,
|
||||
val source: Source,
|
||||
) : Content()
|
||||
}
|
||||
}
|
||||
|
||||
enum class Source {
|
||||
MAIN_SCREEN,
|
||||
SEND_SCREEN,
|
||||
}
|
||||
}
|
||||
|
||||
inline val PredefinedValues.isFromMainScreenQr: Boolean
|
||||
get() = (this as? PredefinedValues.Content.QrCode)
|
||||
?.source == PredefinedValues.Source.MAIN_SCREEN
|
||||
Loading…
Add table
Add a link
Reference in a new issue