This commit is contained in:
AdrianLxM 2018-03-19 20:03:15 +01:00
parent e0dac6f24e
commit b6b7955dde

View file

@ -386,9 +386,14 @@ public class TDDStatsActivity extends Activity {
TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.MATCH_PARENT,
TableLayout.LayoutParams.WRAP_CONTENT)); TableLayout.LayoutParams.WRAP_CONTENT));
sum = sum + tdd;
i++; i++;
if(df.format(new Date(historyList.get(0).date)).equals(df.format(new Date()))) {
break;
}
sum = sum + tdd;
// Create the cumtable row // Create the cumtable row
TableRow ctr = new TableRow(TDDStatsActivity.this); TableRow ctr = new TableRow(TDDStatsActivity.this);
if (i % 2 == 0) ctr.setBackgroundColor(Color.DKGRAY); if (i % 2 == 0) ctr.setBackgroundColor(Color.DKGRAY);