Skip to content

Commit 6b4dd76

Browse files
committed
indicate if set
1 parent 8567f03 commit 6b4dd76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/io/mapsmessaging/location/LocationManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright [ 2020 - 2023 ] [Matthew Buckton]
2+
* Copyright [ 2020 - 2024 ] [Matthew Buckton]
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,10 +36,12 @@ public static LocationManager getInstance() {
3636
public synchronized void setPosition(double latitude, double longitude) {
3737
this.latitude = (latitude);
3838
this.longitude = (longitude);
39+
set = true;
3940
}
4041

4142
private LocationManager() {
4243
longitude = Double.NaN;
4344
latitude = Double.NaN;
45+
set = false;
4446
}
4547
}

0 commit comments

Comments
 (0)