diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-28 07:06:51 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-28 07:06:51 +0500 |
commit | 61b2486353c742afe6214f0a0c5c2e9956ea3b97 (patch) | |
tree | 0ea99ab937fbae96b35cc5dc62edbc74594af9e4 | |
parent | 85987e35e6f331e60ac1bdeb43668356809b9b90 (diff) | |
download | trackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.tar.gz trackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.tar.bz2 trackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.zip |
- Removed unlikely check
- Fixed indentation
-rw-r--r-- | src/org/traccar/notification/NotificationFormatter.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java index 2b648ef4c..37bd7848c 100644 --- a/src/org/traccar/notification/NotificationFormatter.java +++ b/src/org/traccar/notification/NotificationFormatter.java @@ -127,25 +127,25 @@ public final class NotificationFormatter { break; case Event.TYPE_DEVICE_MOVING: formatter.format(MESSAGE_TEMPLATE_TYPE_DEVICE_MOVING, device.getName(), position.getFixTime(), - position.getLatitude(), position.getLongitude()); + position.getLatitude(), position.getLongitude()); break; case Event.TYPE_DEVICE_STOPPED: formatter.format(MESSAGE_TEMPLATE_TYPE_DEVICE_STOPPED, device.getName(), position.getFixTime(), - position.getLatitude(), position.getLongitude()); + position.getLatitude(), position.getLongitude()); break; case Event.TYPE_DEVICE_OVERSPEED: formatter.format(MESSAGE_TEMPLATE_TYPE_DEVICE_OVERSPEED, device.getName(), position.getFixTime(), - position.getLatitude(), position.getLongitude(), position.getSpeed()); + position.getLatitude(), position.getLongitude(), position.getSpeed()); break; case Event.TYPE_GEOFENCE_ENTER: formatter.format(MESSAGE_TEMPLATE_TYPE_GEOFENCE_ENTER, device.getName(), position.getFixTime(), - position.getLatitude(), position.getLongitude(), Context.getGeofenceManager() != null - ? Context.getGeofenceManager().getGeofence(event.getGeofenceId()).getName() : ""); + position.getLatitude(), position.getLongitude(), + Context.getGeofenceManager().getGeofence(event.getGeofenceId()).getName()); break; case Event.TYPE_GEOFENCE_EXIT: formatter.format(MESSAGE_TEMPLATE_TYPE_GEOFENCE_EXIT, device.getName(), position.getFixTime(), - position.getLatitude(), position.getLongitude(), Context.getGeofenceManager() != null - ? Context.getGeofenceManager().getGeofence(event.getGeofenceId()).getName() : ""); + position.getLatitude(), position.getLongitude(), + Context.getGeofenceManager().getGeofence(event.getGeofenceId()).getName()); break; default: formatter.format("Unknown type"); |