We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e52ef commit 4f0b903Copy full SHA for 4f0b903
app/src/org/commcare/location/CommCareLocationController.kt
@@ -39,12 +39,11 @@ fun shouldDiscardLocation(location: Location): Boolean {
39
return false
40
}
41
42
-fun getStaleLocationException(location: Location): Throwable {
+fun getStaleLocationException(location: Location): Throwable =
43
Exception(
44
- "Stale location with accuracy ${location.accuracy}" +
+ "Stale location with accuracy ${location.accuracy}" +
45
" with time ${location.time}" + " and current device time ${System.currentTimeMillis()}"
46
)
47
-}
48
49
fun logStaleLocationSaved(location: Location) {
50
if (!isLocationFresh(location, DEFAULT_TIME_THRESHOLD)) {
0 commit comments