diff --git a/app/src/main/java/com/example/citrusclient/views/MyAdapter.java b/app/src/main/java/com/example/citrusclient/views/MyAdapter.java index e03ea29..2811bd6 100644 --- a/app/src/main/java/com/example/citrusclient/views/MyAdapter.java +++ b/app/src/main/java/com/example/citrusclient/views/MyAdapter.java @@ -83,28 +83,25 @@ package com.example.citrusclient.views; -import android.app.Activity; -import android.content.Context; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; -import androidx.annotation.NonNull; -import androidx.recyclerview.widget.RecyclerView; - -import com.example.citrusclient.Citrus; import com.example.citrusclient.R; import com.example.citrusclient.models.Book; import java.util.ArrayList; -import java.util.Calendar; import java.util.List; +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + public class MyAdapter extends RecyclerView.Adapter { private List originalList; // 元のデータリスト private List filteredList; // フィルタリングされたリスト + private Object context; // private List publicList; // private List accountIdList; @@ -139,13 +136,10 @@ holder.titleTextView.setBackgroundColor(Color.rgb(red, green, blue)); holder.titleTextView.setTextColor(Color.rgb(255 - red, 255 - green, 255 - blue)); // holder.titleTextView.setOnClickListener(v -> { -// Calendar c = Calendar.getInstance(); // Activity activity = (Activity) context; // Citrus citrus = (Citrus) activity.getApplication(); -// citrus.setCurYear(c.get(Calendar.YEAR)); -// citrus.setCurMonth(c.get(Calendar.MONTH) + 1); -// citrus.setCurDay(c.get(Calendar.DATE)); -// citrus.setCurBookId(publicData.getBookId()); +// citrus.setCurLookingAccountId(currentBook.getAccountId()); +// citrus.setCurLookingBookId(currentBook.getBookId()); // ((MainActivity) activity).showFragment(new HomeFragment()); // }); }