Skip to content

Commit

Permalink
feat(android): callNative remove init flag limit
Browse files Browse the repository at this point in the history
  • Loading branch information
zoomchan-cxj committed Sep 23, 2021
1 parent f2c2a6c commit 9941bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,6 @@ public void destroyInstance(int id) {

@Override
public void execCallback(Object params, BridgeTransferType transferType) {
if (!mIsInit) {
return;
}

Message message = mHandler
.obtainMessage(MSG_CODE_CALL_FUNCTION, transferType.value(), FUNCTION_ACTION_CALLBACK,
params);
Expand Down Expand Up @@ -523,7 +519,7 @@ public void callJavaScriptModule(String moduleName, String methodName, Object pa

@Override
public void callNatives(String moduleName, String moduleFunc, String callId, HippyArray params) {
if (mIsInit && mContext != null && mContext.getModuleManager() != null) {
if (mContext != null && mContext.getModuleManager() != null) {
HippyModuleManager manager = mContext.getModuleManager();
if (manager != null) {
HippyCallNativeParams callNativeParams = HippyCallNativeParams
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {
}
```

+ 对于 Android 调试,打开 `Enable Live Reload` 开关
+ 对于 Android 调试,打开 `Enable Live Reload` 开关,(`2.9.1` 版本后业务代码启动后会自动监听,无需再用开关)

<img src="https://user-images.githubusercontent.com/12878546/132832119-b1b7e042-da9d-4792-a21c-ff4773f3cca0.jpg" alt="Android Debug" width="25%"/>
<br />
Expand Down

0 comments on commit 9941bb4

Please sign in to comment.