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

Commit 49a74f0

Browse files
YorkShenjianhan-he
authored andcommitted
* [Android] return 0 if there is no android system. (#2419)
1 parent 2ac8d2c commit 49a74f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

weex_core/Source/core/bridge/platform/core_side_in_platform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ void CoreSideInPlatform::AddOption(const std::string &key,
316316
int CoreSideInPlatform::RefreshInstance(
317317
const char *instanceId, const char *nameSpace, const char *func,
318318
std::vector<VALUE_WITH_TYPE *> &params) {
319+
#ifdef OS_ANDROID
319320
if(params.size() < 2)
320321
return false;
321322

@@ -372,6 +373,9 @@ int CoreSideInPlatform::RefreshInstance(
372373
return true;
373374
}
374375
return ExecJS(instanceId, nameSpace, func, params);
376+
#else
377+
return 0;
378+
#endif
375379
}
376380

377381
int CoreSideInPlatform::InitFramework(

0 commit comments

Comments
 (0)