Skip to content

Commit

Permalink
Merge pull request #3529 from Navid200/Navid_2024_06_12
Browse files Browse the repository at this point in the history
Data table crash
  • Loading branch information
jamorham authored Jun 25, 2024
2 parents 7f9d64e + 0e5ba7f commit c964007
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public void onNavigationDrawerItemSelected(int position) {

private void getData() {
final List<BgReading> latest = BgReading.latest(5000);
parseDataForStats(latest);
ListAdapter adapter = new BgReadingAdapter(this, latest);
this.setListAdapter(adapter);
try {
parseDataForStats(latest);
ListAdapter adapter = new BgReadingAdapter(this, latest);
this.setListAdapter(adapter);
if (total > 0) {
this.getActionBar().setSubtitle(String.format(Locale.getDefault(), "%d in 24h, bf:%d%% mis:%d", total, ((backfilled * 100) / total), missing));
}
Expand Down

0 comments on commit c964007

Please sign in to comment.