Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mzeppelzauer
SoniControl
Commits
5d40ba74
Commit
5d40ba74
authored
May 29, 2018
by
Florian
Browse files
fixed when service crashed during/after a detection and no choice was taken
parent
22e7b7d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
SoniControl/app/src/main/java/at/ac/fhstp/sonicontrol/Location.java
View file @
5d40ba74
...
...
@@ -139,7 +139,12 @@ public class Location {
public
double
[]
getDetectedDBEntry
(){
if
(
positionLatest
[
0
]==
detectedSignalPosition
[
0
]&&
positionLatest
[
1
]==
detectedSignalPosition
[
1
]){
detectedSignalPosition
=
locationData
.
getDetectedLocation
();
if
(
locationData
!=
null
)
{
detectedSignalPosition
=
locationData
.
getDetectedLocation
();
}
else
{
detectedSignalPosition
[
0
]
=
0
;
detectedSignalPosition
[
1
]
=
0
;
}
}
return
detectedSignalPosition
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment