From f9c1e4a0e46f2a8216b57c590f23feef6164eb72 Mon Sep 17 00:00:00 2001 From: Quentin Jouannot Date: Fri, 22 Mar 2024 17:15:43 +0100 Subject: [PATCH] resolve code --- .../helloandroid/ut3/chauvequipeut/ScoreboardActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }); + } }