凡ミス修正
This commit is contained in:
parent
3151060bb4
commit
650e0ce591
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user