判定ミス修正

This commit is contained in:
ろむねこ 2024-07-23 13:44:47 +09:00
parent 7794d664ba
commit bba2751704
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

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