1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-08 03:07:04 +01:00

Fix checking for up-to-date User and Device attributes

This commit is contained in:
cpfeiffer 2016-08-13 00:27:38 +02:00
parent 65d973401a
commit b3984a409c

View File

@ -196,7 +196,7 @@ public class DBHelper {
private static boolean hasUpToDateUserAttributes(List<UserAttributes> userAttributes, ActivityUser prefsUser) {
for (UserAttributes attr : userAttributes) {
if (!isValidNow(attr)) {
return false;
continue;
}
if (isEqual(attr, prefsUser)) {
return true;
@ -311,7 +311,7 @@ public class DBHelper {
private static boolean hasUpToDateDeviceAttributes(List<DeviceAttributes> deviceAttributes, GBDevice gbDevice) {
for (DeviceAttributes attr : deviceAttributes) {
if (!isValidNow(attr)) {
return false;
continue;
}
if (isEqual(attr, gbDevice)) {
return true;