Codepath-app / Codepath-app/WeeLearn

Fix current bugs on retrieving data

Open
#3 0 comments 0 reactions 1 assignee Claimed by @benjichiwaya View on GitHub
bug documentation
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.