修复测试反馈问题
This commit is contained in:
@@ -40,7 +40,7 @@ public class JavascriptInterfaceUtils {
|
||||
//判断是页面关闭还是网页回退
|
||||
private boolean pageClose = false;
|
||||
private boolean dialogClose = false;
|
||||
private boolean permitSetHigh =true;
|
||||
private boolean permitSetHigh = true;
|
||||
//同名activity跳转问题
|
||||
private boolean LiveZhuangBana = true;
|
||||
private static JavascriptInterfaceUtils sInstance;
|
||||
@@ -63,8 +63,8 @@ public class JavascriptInterfaceUtils {
|
||||
/**
|
||||
* 允许js修改webview高度
|
||||
*/
|
||||
public JavascriptInterfaceUtils setPermitSetHigh(boolean isPermit){
|
||||
this.permitSetHigh=isPermit;
|
||||
public JavascriptInterfaceUtils setPermitSetHigh(boolean isPermit) {
|
||||
this.permitSetHigh = isPermit;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -512,7 +512,7 @@ public class JavascriptInterfaceUtils {
|
||||
if ("0".equals(height)) {
|
||||
return;
|
||||
}
|
||||
if(!permitSetHigh){
|
||||
if (!permitSetHigh) {
|
||||
return;
|
||||
}
|
||||
Handler handler = new Handler(Looper.getMainLooper());
|
||||
@@ -612,6 +612,8 @@ public class JavascriptInterfaceUtils {
|
||||
|
||||
@JavascriptInterface
|
||||
public void androidCallChat(String targetId) {
|
||||
ToastUtil.show("网页触发聊一聊:" + targetId);
|
||||
Bus.get().post(new JavascriptInterfaceEvent()
|
||||
.setData(targetId)
|
||||
.setMethod("androidCallChat"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user