Skip to content

Commit

Permalink
fix the bug that the method of registerAppAndSetPlatformConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangBrook committed Feb 20, 2016
1 parent 761739b commit 51b1155
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,16 @@ private String registerAppAndSetPlatformConfig(HashMap<String, Object> params) {
boolean enableStatistics = !"false".equals(params.get("enableStatistics"));
ShareSDK.initSDK(getActivity(), appkey, enableStatistics);

HashMap<String, Object> devInfo = (HashMap<String, Object>) params.get("config");
for(Entry<String, Object> entry: devInfo.entrySet()){
String p = ShareSDK.platformIdToName(Integer.parseInt(entry.getKey()));
System.out.println(p + " ==>>" + new Hashon().fromHashMap((HashMap<String, Object>)entry.getValue()));
ShareSDK.setPlatformDevInfo(p, (HashMap<String, Object>)entry.getValue());
}
final HashMap<String, Object> devInfo = (HashMap<String, Object>) params.get("config");
UIHandler.sendEmptyMessageDelayed(1, 500, new Callback() {
public boolean handleMessage(Message msg) {
for(Entry<String, Object> entry: devInfo.entrySet()){
String p = ShareSDK.platformIdToName(Integer.parseInt(entry.getKey()));
ShareSDK.setPlatformDevInfo(p, (HashMap<String, Object>)entry.getValue());
}
return true;
}
});
} catch (Throwable t) {
t.printStackTrace();
}
Expand Down
Binary file modified ANESample/package/Android-ARM/ShareSDKANE.jar
Binary file not shown.
Binary file modified ANESample/package/ShareSDK.ane
Binary file not shown.

0 comments on commit 51b1155

Please sign in to comment.