File tree 1 file changed +2
-2
lines changed
app/src/main/java/com/tari/android/wallet/ui/fragment/tx
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class HomeFragmentViewModel : CommonViewModel() {
81
81
private val _refreshBalanceInfo = SingleLiveEvent <Boolean >()
82
82
val refreshBalanceInfo: SingleLiveEvent <Boolean > = _refreshBalanceInfo
83
83
84
- val txList = MediatorLiveData <MutableList <CommonViewHolderItem >>()
84
+ val txList = MediatorLiveData <List <CommonViewHolderItem >>()
85
85
86
86
val emoji = MutableLiveData <String >()
87
87
@@ -106,7 +106,7 @@ class HomeFragmentViewModel : CommonViewModel() {
106
106
107
107
private fun updateList () {
108
108
val list = transactionRepository.list.value ? : return
109
- txList.postValue(list.filterIsInstance<TransactionItem >().sortedByDescending { it.tx.timestamp }.takeLast (TRANSACTION_AMOUNT_HOME_PAGE ).toMutableList( ))
109
+ txList.postValue(list.filterIsInstance<TransactionItem >().sortedByDescending { it.tx.timestamp }.take (TRANSACTION_AMOUNT_HOME_PAGE ))
110
110
}
111
111
112
112
fun processItemClick (item : CommonViewHolderItem ) {
You can’t perform that action at this time.
0 commit comments