aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification/NotificationFormatter.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-28 07:06:51 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-28 07:06:51 +0500
commit61b2486353c742afe6214f0a0c5c2e9956ea3b97 (patch)
tree0ea99ab937fbae96b35cc5dc62edbc74594af9e4 /src/org/traccar/notification/NotificationFormatter.java
parent85987e35e6f331e60ac1bdeb43668356809b9b90 (diff)
downloadtrackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.tar.gz
trackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.tar.bz2
trackermap-server-61b2486353c742afe6214f0a0c5c2e9956ea3b97.zip
- Removed unlikely check
- Fixed indentation
Diffstat (limited to 'src/org/traccar/notification/NotificationFormatter.java')
-rw-r--r--src/org/traccar/notification/NotificationFormatter.java14
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");