diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-20 10:45:52 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-20 10:45:52 +0500 |
commit | 32a7fe7eb22d435906b65f91c37751ece4fea828 (patch) | |
tree | 988ea8c712656e913672fb85de992f353c51c16b /src/org/traccar/database/GeofenceManager.java | |
parent | 8e4d44e045c6e0c800b3b353f6f55c64d731428c (diff) | |
download | trackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.tar.gz trackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.tar.bz2 trackermap-server-32a7fe7eb22d435906b65f91c37751ece4fea828.zip |
- Move groups related actions to DeviceManager
- Removed cache updates from getXxxxById
Diffstat (limited to 'src/org/traccar/database/GeofenceManager.java')
-rw-r--r-- | src/org/traccar/database/GeofenceManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/GeofenceManager.java b/src/org/traccar/database/GeofenceManager.java index 930008082..74dff70f4 100644 --- a/src/org/traccar/database/GeofenceManager.java +++ b/src/org/traccar/database/GeofenceManager.java @@ -188,8 +188,8 @@ public class GeofenceManager { while (groupId != 0) { getDeviceGeofences(deviceGeofencesWithGroups, device.getId()).addAll(getGroupGeofences(groupId)); - if (dataManager.getGroupById(groupId) != null) { - groupId = dataManager.getGroupById(groupId).getGroupId(); + if (Context.getDeviceManager().getGroupById(groupId) != null) { + groupId = Context.getDeviceManager().getGroupById(groupId).getGroupId(); } else { groupId = 0; } |