Skip to content

Commit

Permalink
Merge pull request #5941 from ayeung/timob-16810
Browse files Browse the repository at this point in the history
[TIMOB-16810] Add delay after loadLibrary for HTC One devices
  • Loading branch information
vishalduggal committed Aug 4, 2014
2 parents 6899aaa + 6e5a1de commit 063d256
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,18 @@ public void initRuntime()
if (!libLoaded) {
System.loadLibrary("stlport_shared");
System.loadLibrary("kroll-v8");

// TIMOB-16810 Add a delay to allow symbols to load before calling nativeInit (For HTC One Devices)
if (Build.MODEL.equals("HTC One")) {
try {
Thread.sleep(50);
} catch (InterruptedException e) {
}
}

libLoaded = true;
}

boolean DBG = true;
String deployType = getKrollApplication().getDeployType();
if (deployType.equals("production")) {
Expand Down

0 comments on commit 063d256

Please sign in to comment.