I'm working on a todo app and I have a pop window opening from the bottom where the user enters the task information (description name, due date, reminder time). I use a floating action button to open the dialog. Now if I use the dialog button and hardcoded values it works fine, but with anything else it doesn't.
The code I'm using.
public void CreateTask(View view){
recyclerView = findViewById(R.id.rvChild);
EditText taskName = findViewById(R.id.txtTaskName);
EditText taskDesc = findViewById(R.id.txtDesc);
String task_Name = taskName.getText().toString();
String task_desc = taskDesc.getText().toString();
detailsList = new ArrayList<>();
LinearLayoutManager manager = new LinearLayoutManager(this);
recyclerView.setLayoutManager(manager);
recyclerView.setHasFixedSize(true);
Details details = new Details(task_Name, task_desc);
detailsList.add(details);
Myadapter = new MyAdapter(detailsList);
recyclerView.setAdapter(Myadapter);
}```
and I can see the following 2 errors in logcat
GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
E/RecyclerView: No adapter attached; skipping layout