diff options
author | Torsten Grote <t@grobox.de> | 2020-01-02 10:00:48 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-01-02 10:00:48 -0300 |
commit | 208d7ab1872cc7f5183a553d590ec4debc911292 (patch) | |
tree | b3b67f07f391a3ed686f8b872373b2f07b27459f /app/src/main/java/net/taler/wallet/history/HistoryEvent.kt | |
parent | 1ec44435ab0ab098a04b3f4ee9f2599d99535c41 (diff) | |
download | wallet-android-208d7ab1872cc7f5183a553d590ec4debc911292.tar.gz wallet-android-208d7ab1872cc7f5183a553d590ec4debc911292.tar.bz2 wallet-android-208d7ab1872cc7f5183a553d590ec4debc911292.zip |
Hide detailed history events by default
Also implement history changes after latest feedback
Diffstat (limited to 'app/src/main/java/net/taler/wallet/history/HistoryEvent.kt')
-rw-r--r-- | app/src/main/java/net/taler/wallet/history/HistoryEvent.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/net/taler/wallet/history/HistoryEvent.kt b/app/src/main/java/net/taler/wallet/history/HistoryEvent.kt index 31473f6..b21147a 100644 --- a/app/src/main/java/net/taler/wallet/history/HistoryEvent.kt +++ b/app/src/main/java/net/taler/wallet/history/HistoryEvent.kt @@ -80,7 +80,7 @@ class ReserveShortInfo( val reserveCreationDetail: ReserveCreationDetail ) -class History : ArrayList<HistoryEvent>() +typealias History = ArrayList<HistoryEvent> @JsonTypeInfo( use = NAME, @@ -109,7 +109,8 @@ abstract class HistoryEvent( @get:StringRes open val title: Int = 0, @get:DrawableRes - open val icon: Int = R.drawable.ic_account_balance + open val icon: Int = R.drawable.ic_account_balance, + open val showToUser: Boolean = false ) @@ -178,6 +179,7 @@ class HistoryWithdrawnEvent( override val layout = R.layout.history_withdrawn override val title = R.string.history_event_withdrawn override val icon = R.drawable.history_withdrawn + override val showToUser = true } @JsonTypeName("order-accepted") @@ -232,6 +234,7 @@ class HistoryPaymentSentEvent( override val layout = R.layout.history_payment_sent override val title = R.string.history_event_payment_sent override val icon = R.drawable.ic_cash_usd_outline + override val showToUser = true } @JsonTypeName("refreshed") |