LiveHDDialogFragment 补充参数根据条件补充
This commit is contained in:
parent
b8996a700a
commit
c0367942e5
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user