Skip to content

Commit

Permalink
fix(android): reset another enable buffer setting in HippyEngineManager
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and churchill-zhang committed May 17, 2021
1 parent 8e60e23 commit 8b5f4a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public HippyEngineManager createDebugHippyEngineManager(String debugJs)
{
HippyEngineManager.Builder builder = new HippyEngineManager.Builder();
builder.setHippyGlobalConfigs(getHippyGlobalConfigs()).setCoreBundleLoader(null).setPackages(getPackages()).setSupportDev(true)
.setDebugJs(debugJs).setGroupId(getGroupId());
.setDebugJs(debugJs).setGroupId(getGroupId()).setEnableHippyBuffer(true);

return builder.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static class Builder
private HippyGlobalConfigs mGlobalConfigs;
private HippyBundleLoader mCoreBundleLoader;
private HippyBundleLoader mPreloadBundleLoader;
private List<HippyAPIProvider> mPackages;
private List<HippyAPIProvider> mPackages;
private boolean mSupportDev = false;
private String mDebugJs;
private boolean mBridgeHippyBuffer = false;
Expand Down Expand Up @@ -141,6 +141,11 @@ Builder setEnableHippyBuffer(boolean enable)
return this;
}

Builder setGroupId(int groupId) {
mGroupId = groupId;
return this;
}

HippyEngineManager build()
{
if (mCoreBundleLoader == null && !mSupportDev)
Expand Down Expand Up @@ -181,9 +186,5 @@ else if (mCoreBundleLoader != null)

return hippyEngineManager;
}

public void setGroupId(int groupId) {
mGroupId = groupId;
}
}
}

0 comments on commit 8b5f4a9

Please sign in to comment.