Skip to content

Commit

Permalink
Merge pull request #34 from Kantun36/fireBase
Browse files Browse the repository at this point in the history
resolve code
  • Loading branch information
Kantun36 authored Mar 22, 2024
2 parents 345f352 + f9c1e4a commit 40af8fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public void onClick(View v) {
recyclerView.setLayoutManager(new LinearLayoutManager(this));
scoreData(new ScoreCallback() {
@Override
public void onCallback(List<Score> restaurants) {
ScoreAdapter adapter = new ScoreAdapter(ScoreboardActivity.this, restaurants);
public void onCallback(List<Score> scores) {
ScoreAdapter adapter = new ScoreAdapter(ScoreboardActivity.this, scores);
recyclerView.setAdapter(adapter);
}
});
Expand All @@ -66,5 +66,6 @@ public void scoreData(ScoreCallback callback) {
.addOnFailureListener(e -> {
Log.w("ScoreboardActivity", "Erreur lors de la récupération des données", e);
});

}
}

0 comments on commit 40af8fb

Please sign in to comment.