Skip to content

Commit

Permalink
Release 1.6.21
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhzh committed Oct 20, 2016
1 parent e2080ea commit af03de5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/SensorsAnalyticsSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.6.20"
version = "1.6.21"

android {
compileSdkVersion 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ private static void mergeJSONObject(final JSONObject source, JSONObject dest)
static final int VTRACK_SUPPORTED_MIN_API = 16;

// SDK版本
static final String VERSION = "1.6.20";
static final String VERSION = "1.6.21";

static Boolean ENABLE_LOG = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ private void initializeBindings() {
applyVariantsAndEventBindings();
}

private void retrySendDeviceInfo(final JSONObject message) {
final Message msg = mMessageThreadHandler.obtainMessage(ViewCrawler.MESSAGE_SEND_DEVICE_INFO);
msg.obj = message;
mMessageThreadHandler.sendMessageDelayed(msg, 1000);
}

/**
* Try to connect to the remote interactive editor, if a connection does not already exist.
*/
Expand Down Expand Up @@ -371,6 +377,10 @@ private void sendDeviceInfo(final JSONObject message) {
}

Iterator<Activity> activityIt = mStartedActivities.iterator();
if (!activityIt.hasNext()) {
retrySendDeviceInfo(message);
return;
}
Activity activity = activityIt.next();

if (activity == null) {
Expand Down

0 comments on commit af03de5

Please sign in to comment.