Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-background-geolocation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Aksimaya
cordova-background-geolocation
Commits
8dca2e04
Commit
8dca2e04
authored
Apr 01, 2015
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix race condition requesting activity-updates before google api connected
parent
e2dfd2d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
BackgroundGeolocationPlugin.java
src/android/BackgroundGeolocationPlugin.java
+8
-2
No files found.
src/android/BackgroundGeolocationPlugin.java
View file @
8dca2e04
...
@@ -115,7 +115,9 @@ public class BackgroundGeolocationPlugin extends CordovaPlugin implements Locati
...
@@ -115,7 +115,9 @@ public class BackgroundGeolocationPlugin extends CordovaPlugin implements Locati
result
=
true
;
result
=
true
;
isEnabled
=
true
;
isEnabled
=
true
;
if
(
googleApiClient
.
isConnected
())
{
requestActivityUpdates
();
requestActivityUpdates
();
}
}
else
if
(
ACTION_STOP
.
equalsIgnoreCase
(
action
))
{
}
else
if
(
ACTION_STOP
.
equalsIgnoreCase
(
action
))
{
result
=
true
;
result
=
true
;
...
@@ -447,12 +449,16 @@ public class BackgroundGeolocationPlugin extends CordovaPlugin implements Locati
...
@@ -447,12 +449,16 @@ public class BackgroundGeolocationPlugin extends CordovaPlugin implements Locati
public
void
onConnectionFailed
(
ConnectionResult
arg0
)
{
public
void
onConnectionFailed
(
ConnectionResult
arg0
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
Log
.
i
(
TAG
,
"- onConnectionFailed"
);
}
}
public
void
onConnected
(
Bundle
arg0
)
{
public
void
onConnected
(
Bundle
arg0
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
Log
.
i
(
TAG
,
"- onConnected"
);
Log
.
i
(
TAG
,
"- onConnected"
);
if
(
isEnabled
)
{
requestActivityUpdates
();
}
}
}
...
...
Write
Preview
Markdown
is supported
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