[#1310] Release 0.2.0 (583)
* [#1310] Release 0.2.0 (583) Closes #1310 * Fix valid message check
This commit is contained in:
parent
4ae3fde690
commit
a8ad649ef8
|
@ -9,6 +9,8 @@ directly impact users rather than highlighting other key architectural updates.*
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.2.0 (583)] - 2024-03-29
|
||||
|
||||
### Added
|
||||
- Advanced Settings screen that provides more technical options like Export private data, Recovery phrase, or
|
||||
Choose server has been added
|
||||
|
|
|
@ -487,8 +487,8 @@ private fun HistoryItemExpandedPart(
|
|||
modifier: Modifier = Modifier
|
||||
) {
|
||||
Column(modifier = modifier) {
|
||||
if (!transaction.messages.isNullOrEmpty()) {
|
||||
HistoryItemMessagePart(transaction.messages.toPersistentList(), onAction)
|
||||
if (transaction.messages.containsValidMemo()) {
|
||||
HistoryItemMessagePart(transaction.messages!!.toPersistentList(), onAction)
|
||||
|
||||
Spacer(modifier = Modifier.height(ZcashTheme.dimens.spacingDefault))
|
||||
}
|
||||
|
@ -523,6 +523,10 @@ private fun HistoryItemExpandedPart(
|
|||
}
|
||||
}
|
||||
|
||||
private fun List<String>?.containsValidMemo(): Boolean {
|
||||
return !isNullOrEmpty() && find { it.isNotEmpty() } != null
|
||||
}
|
||||
|
||||
const val EXPANDED_TRANSACTION_ID_WIDTH_RATIO = 0.75f
|
||||
const val COLLAPSED_TRANSACTION_ID_WIDTH_RATIO = 0.5f
|
||||
|
||||
|
|
Loading…
Reference in New Issue