[#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]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.2.0 (583)] - 2024-03-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Advanced Settings screen that provides more technical options like Export private data, Recovery phrase, or
|
- Advanced Settings screen that provides more technical options like Export private data, Recovery phrase, or
|
||||||
Choose server has been added
|
Choose server has been added
|
||||||
|
|
|
@ -487,8 +487,8 @@ private fun HistoryItemExpandedPart(
|
||||||
modifier: Modifier = Modifier
|
modifier: Modifier = Modifier
|
||||||
) {
|
) {
|
||||||
Column(modifier = modifier) {
|
Column(modifier = modifier) {
|
||||||
if (!transaction.messages.isNullOrEmpty()) {
|
if (transaction.messages.containsValidMemo()) {
|
||||||
HistoryItemMessagePart(transaction.messages.toPersistentList(), onAction)
|
HistoryItemMessagePart(transaction.messages!!.toPersistentList(), onAction)
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(ZcashTheme.dimens.spacingDefault))
|
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 EXPANDED_TRANSACTION_ID_WIDTH_RATIO = 0.75f
|
||||||
const val COLLAPSED_TRANSACTION_ID_WIDTH_RATIO = 0.5f
|
const val COLLAPSED_TRANSACTION_ID_WIDTH_RATIO = 0.5f
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue