From 61b2486353c742afe6214f0a0c5c2e9956ea3b97 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 28 Jun 2016 07:06:51 +0500 Subject: - Removed unlikely check - Fixed indentation --- src/org/traccar/notification/NotificationFormatter.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/org/traccar/notification') 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"); -- cgit v1.2.3