aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-19 12:00:40 +0300
committerGitHub <noreply@github.com>2018-07-19 12:00:40 +0300
commit4c3f628ce39105f514c87833853bb52414938acc (patch)
tree0f3854d881a1d0f69910c79b15b223e394faf925 /src/org
parentab81b1434504d9ed288079f2cf0eb81aaffa668c (diff)
parentb8f17ea08288c62f22133156364f444b1e25c74b (diff)
downloadtraccar-server-4c3f628ce39105f514c87833853bb52414938acc.tar.gz
traccar-server-4c3f628ce39105f514c87833853bb52414938acc.tar.bz2
traccar-server-4c3f628ce39105f514c87833853bb52414938acc.zip
Merge pull request #3978 from kevingoos/master
Added integer checking for valid in osmand
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index c75e9519c..b270b6071 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -70,7 +70,7 @@ public class OsmAndProtocolDecoder extends BaseHttpProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
break;
case "valid":
- position.setValid(Boolean.parseBoolean(value));
+ position.setValid(Boolean.parseBoolean(value) || "1".equals(value));
break;
case "timestamp":
try {