LiveHDDialogFragment 补充参数根据条件补充

This commit is contained in:
ningwenqiang 2024-10-28 18:17:46 +08:00
parent b8996a700a
commit c0367942e5

View File

@ -191,7 +191,16 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
mWebView.setLayoutParams(params);
}
String url = bundle.getString("url");
url += "&anchorUid=" + mLiveUid+"&stream="+mStream+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
//url += "&anchorUid=" + mLiveUid+"&stream="+mStream+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
if (!url.contains("anchorUid")){
url +="&anchorUid=" + mLiveUid;
}
if (!url.contains("stream")){
url +="&stream="+mStream;
}
if (!url.contains("isZh")){
url +="&isZh=" + (WordUtil.isNewZh() ? "1" : 0);
}
Log.e("H5--半屏",url);
mWebView.loadUrl(url);
mWebView.setWebViewClient(new WebViewClient() {