Updated on 2026-08-14

This commit is contained in:
Tangem 2026-03-23 11:18:20 +03:00
parent 6dd7ed1909
commit 1ffdbd8b72
3 changed files with 53 additions and 20 deletions

View file

@ -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