1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Fix average calculation when scrolling between days

This commit is contained in:
vanous 2020-04-11 13:47:13 +02:00 committed by Gitea
parent 5d0dec1c48
commit a1a010b4b4

View File

@ -126,7 +126,7 @@ public abstract class AbstractWeekChartFragment extends AbstractChartFragment {
long balance = 0;
long daily_balance=0;
TOTAL_DAYS_FOR_AVERAGE=0;
for (int counter = 0; counter < TOTAL_DAYS; counter++) {
ActivityAmounts amounts = getActivityAmountsForDay(db, day, device);