diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-30 11:49:39 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-30 11:49:39 -0700 |
commit | 154ff3b2175e67b3fac531cb9c5c5c68880f5e12 (patch) | |
tree | f448a59c75b64deea60b1bd6e79d66790f62a4a8 /src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | |
parent | b1a971eedb18a11af2cdc70ba5f8004bae89defd (diff) | |
download | trackermap-server-154ff3b2175e67b3fac531cb9c5c5c68880f5e12.tar.gz trackermap-server-154ff3b2175e67b3fac531cb9c5c5c68880f5e12.tar.bz2 trackermap-server-154ff3b2175e67b3fac531cb9c5c5c68880f5e12.zip |
Inject media manager
Diffstat (limited to 'src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java index f83a49941..61a61b900 100644 --- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -148,7 +148,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { String uniqueId = Context.getIdentityManager().getById(position.getDeviceId()).getUniqueId(); photos.remove(photoId); try { - position.set(Position.KEY_IMAGE, Context.getMediaManager().writeFile(uniqueId, photo, "jpg")); + position.set(Position.KEY_IMAGE, writeMediaFile(uniqueId, photo, "jpg")); } finally { photo.release(); } |