diff --git a/app/src/main/java/com/example/citrusclient/views/SearchFragment.java b/app/src/main/java/com/example/citrusclient/views/SearchFragment.java index 8c49eec..41509ac 100644 --- a/app/src/main/java/com/example/citrusclient/views/SearchFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/SearchFragment.java @@ -173,17 +173,16 @@ holder.publicButton.setBackgroundColor(Color.rgb(red, green, blue)); holder.publicButton.setTextColor(Color.rgb(255 - red, 255 - green, 255 - blue)); - holder.publicButton.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()); - ((MainActivity) activity).showFragment(new HomeFragment()); - - }); +// holder.publicButton.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()); +// ((MainActivity) activity).showFragment(new HomeFragment()); +// }); }