Codepath-app / Codepath-app/WeeLearn
Fix current bugs on retrieving data
- Dominant language
- Java
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
The **_instrcutor.read()_** function is returning an empty linkedlist.
Fix that first.
```java
for (QueryDocumentSnapshot document : Objects.requireNonNull(task.getResult())) {
//This log statement is there to help us debug.
//document.getdata() is the key function that returns a map instance of the information stored on the cloud
Log.d(TAG, document.getId() + " => " + document.getData().toString());
//while the loop is running and retrieving data, we are pushing each instance into a local linked list
list.add(document.getData()); } }`
```
Then review this
```java
read.setOnClickListener(v -> {
list = instructorData.read();
// newTextview.setText(
// "" //+ instructor.toString()
// );
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.