[#1310] Release 0.2.0 (583)

* [#1310] Release 0.2.0 (583)

Closes #1310

* Fix valid message check
This commit is contained in:
Honza Rychnovský 2024-03-29 21:23:39 +01:00 committed by GitHub
parent 4ae3fde690
commit a8ad649ef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

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

View File

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