Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android] return 0 if there is no android system. (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen authored and jianhan-he committed May 9, 2019
1 parent 2ac8d2c commit 49a74f0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ void CoreSideInPlatform::AddOption(const std::string &key,
int CoreSideInPlatform::RefreshInstance(
const char *instanceId, const char *nameSpace, const char *func,
std::vector<VALUE_WITH_TYPE *> &params) {
#ifdef OS_ANDROID
if(params.size() < 2)
return false;

Expand Down Expand Up @@ -372,6 +373,9 @@ int CoreSideInPlatform::RefreshInstance(
return true;
}
return ExecJS(instanceId, nameSpace, func, params);
#else
return 0;
#endif
}

int CoreSideInPlatform::InitFramework(
Expand Down

0 comments on commit 49a74f0

Please sign in to comment.