diff --git a/feature/wallet/src/main/java/one/nem/kidshift/wallet/HistoryItemListAdapter.java b/feature/wallet/src/main/java/one/nem/kidshift/wallet/HistoryItemListAdapter.java index 0b8f002..95f5292 100644 --- a/feature/wallet/src/main/java/one/nem/kidshift/wallet/HistoryItemListAdapter.java +++ b/feature/wallet/src/main/java/one/nem/kidshift/wallet/HistoryItemListAdapter.java @@ -5,6 +5,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; +import android.widget.ImageButton; import android.widget.LinearLayout; import android.widget.TextView; @@ -154,6 +155,19 @@ public class HistoryItemListAdapter extends RecyclerView.Adapter { + // TODO: 一括で外すことも出来るように + // 判定が変わるまで全部チェックする + try { + int index = historyDataList.getList().indexOf(historyData); + while (!isFirstOfMonth(this.historyDataList.getList().get(index))) { + this.historyDataList.getList().get(index).setChecked(true); + index++; + } + } catch (IndexOutOfBoundsException e) { + // 1個しかない場合? Workaround + } + }); } } @@ -207,11 +221,13 @@ public class HistoryItemListAdapter extends RecyclerView.Adapter