TDD 09 - fix no data
This commit is contained in:
parent
088841ae23
commit
9177307c37
|
@ -386,14 +386,9 @@ 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);
|
||||||
|
@ -435,7 +430,7 @@ public class TDDStatsActivity extends Activity {
|
||||||
tl.setBackgroundColor(Color.TRANSPARENT);
|
tl.setBackgroundColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!historyList.isEmpty() && df.format(new Date(historyList.get(0).date)).equals(df.format(new Date()))) {
|
if(df.format(new Date(historyList.get(0).date)).equals(df.format(new Date()))) {
|
||||||
//Today should not be included
|
//Today should not be included
|
||||||
historyList.remove(0);
|
historyList.remove(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue