diff --git a/app/src/main/java/helloandroid/ut3/chauvequipeut/ScoreboardActivity.java b/app/src/main/java/helloandroid/ut3/chauvequipeut/ScoreboardActivity.java index 3a1db14..f399a70 100644 --- a/app/src/main/java/helloandroid/ut3/chauvequipeut/ScoreboardActivity.java +++ b/app/src/main/java/helloandroid/ut3/chauvequipeut/ScoreboardActivity.java @@ -40,8 +40,8 @@ public void onClick(View v) { recyclerView.setLayoutManager(new LinearLayoutManager(this)); scoreData(new ScoreCallback() { @Override - public void onCallback(List restaurants) { - ScoreAdapter adapter = new ScoreAdapter(ScoreboardActivity.this, restaurants); + public void onCallback(List scores) { + ScoreAdapter adapter = new ScoreAdapter(ScoreboardActivity.this, scores); recyclerView.setAdapter(adapter); } }); @@ -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); }); + } }