mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix refreshing of summaries
This commit is contained in:
+6
-2
@@ -19,12 +19,16 @@ import nodomain.freeyourgadget.gadgetbridge.util.DateTimeUtils;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
||||
|
||||
public class ActivitySummariesAdapter extends AbstractItemAdapter<BaseActivitySummary> {
|
||||
private final GBDevice device;
|
||||
|
||||
public ActivitySummariesAdapter(Context context, GBDevice device) {
|
||||
super(context);
|
||||
loadItems(device);
|
||||
this.device = device;
|
||||
loadItems();
|
||||
}
|
||||
|
||||
public void loadItems(GBDevice device) {
|
||||
@Override
|
||||
public void loadItems() {
|
||||
try (DBHandler handler = GBApplication.acquireDB()) {
|
||||
BaseActivitySummaryDao summaryDao = handler.getDaoSession().getBaseActivitySummaryDao();
|
||||
Device dbDevice = DBHelper.findDevice(device, handler.getDaoSession());
|
||||
|
||||
Reference in New Issue
Block a user