Skip to content

Commit b59c5d7

Browse files
authored
Merge pull request #3 from easilycoder/dev
bugfix:when create webview instance in java,the bridgeName is not rig…
2 parents 8e85d9f + 166679c commit b59c5d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybridge/src/main/java/tech/easily/easybridge/lib/EasyBridgeWebView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ public interface OnBridgeInjectedListener {
5353
private OnBridgeInjectedListener listener;
5454

5555
public EasyBridgeWebView(Context context, String bridgeName) {
56-
this(context, (AttributeSet) null);
56+
super(context);
5757
this.bridgeName = bridgeName;
58+
easyBridge = new EasyBridge(this, bridgeName);
59+
initWebView();
5860
}
5961

6062
public EasyBridgeWebView(Context context, AttributeSet attrs) {

0 commit comments

Comments
 (0)