diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java index 77cff1fc..119ecdcf 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java @@ -377,7 +377,7 @@ public class ControlCenter extends GBActivity { } try (DBHandler dbHandler = GBApplication.acquireDB()) { DaoSession session = dbHandler.getDaoSession(); - Device device = DBHelper.getDevice(gbDevice, session); + Device device = DBHelper.findDevice(gbDevice, session); if (device != null) { long deviceId = device.getId(); QueryBuilder qb;