凡ミス修正

This commit is contained in:
rca 2024-07-07 15:24:29 +09:00
parent 3151060bb4
commit 650e0ce591
3 changed files with 3 additions and 3 deletions

View File

@ -130,10 +130,10 @@ public class CommonHomeFragment extends Fragment {
childListRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
childData.getChildListDirect().thenAccept(childModelList -> {
ChildListItemAdapter childListItemAdapter = new ChildListItemAdapter(childModelList);
childListRecyclerView.setAdapter(childListItemAdapter);
childListItemAdapter.setCallback(childId -> {
taskData.recordTaskCompletion(taskId, childId);
});
childListRecyclerView.setAdapter(childListItemAdapter);
});
new MaterialAlertDialogBuilder(requireContext())

View File

@ -64,7 +64,7 @@ public class ChildListItemAdapter extends RecyclerView.Adapter<ChildListItemAdap
public ViewHolder(@NonNull android.view.View itemView) {
super(itemView);
childName = itemView.findViewById(R.id.childNameTextView);
completedButton = itemView.findViewById(R.id.actbutton);
completedButton = itemView.findViewById(R.id.completeButton);
}
}

View File

@ -23,7 +23,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<Button
android:id="@+id/button"
android:id="@+id/completeButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />