Skip to content

Commit

Permalink
resolve code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantun36 committed Mar 22, 2024
1 parent 75cb0fc commit f9c1e4a
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 f9c1e4a

Please sign in to comment.