Paidを集計に含めないように

This commit is contained in:
ろむねこ 2024-07-23 13:05:18 +09:00
parent 3d222cafe0
commit 7d01ebc018
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -148,7 +148,7 @@ public class WalletContentFragment extends Fragment {
// totalRewardTextView.setText(String.valueOf(historyList.stream().mapToInt(HistoryModel::getReward).sum()) + "");
requireActivity().runOnUiThread(() -> {
historyItemListAdapter.notifyDataSetChanged();
totalRewardTextView.setText(String.valueOf(historyList.stream().mapToInt(HistoryModel::getReward).sum()) + "");
totalRewardTextView.setText(String.valueOf(historyList.stream().filter(HistoryModel::isPaid).mapToInt(HistoryModel::getReward).sum()) + "");
});
}).thenRun(() -> {
requireActivity().runOnUiThread(() -> {