Untitled
unknown
java
4 years ago
935 B
6
Indexable
TextView avgSleep; TextView avgMood; TextView avgFood; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_analytics); String curID = FirebaseAuth.getInstance().getUid(); avgFood = findViewById(R.id.moodScore); avgMood = findViewById(R.id.sleepScore); avgSleep = findViewById(R.id.dietScore); new DaysHelper(curID).calculateAvgScores(new DaysHelper.GetAvgScores() { @Override public void avgScoresLoaded(int avgSleepScore, int avgFoodScore, int avgMoodScore, List<Days> allDays, List<Days> daysRelatedToUser) { avgFood.setText(String.valueOf(avgFoodScore)); avgMood.setText(String.valueOf(avgMoodScore)); avgSleep.setText(String.valueOf(avgSleepScore)); } });
Editor is loading...