From 2eec3de87b6b616a69a46c1f97c2397159031d2f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 21 十一月 2023 18:01:43 +0800 Subject: [PATCH] 广告升级/bug修复 --- BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/UserProtocolDialog.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/UserProtocolDialog.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/UserProtocolDialog.java index bce82eb..1ed6a3c 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/UserProtocolDialog.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/UserProtocolDialog.java @@ -13,6 +13,7 @@ import com.lcjian.library.util.SystemCommon; import com.lcjian.library.util.common.StringUtils; +import com.weikou.beibeivideo.ui.mine.SimpleBrowserActivity; import com.weikou.beibeivideo.util.ui.TextViewUtil; import com.weikou.beibeivideo.R; @@ -101,13 +102,13 @@ LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); final UserProtocolDialog dialog = new UserProtocolDialog(context, R.style.Dialog); - dialog.setCanceledOnTouchOutside(true); + dialog.setCanceledOnTouchOutside(false); final View layout = inflater.inflate(R.layout.dialog_user_protocol, null); dialog.addContentView(layout, new FrameLayout.LayoutParams( - FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)); + FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT)); TextView tv_title = layout.findViewById(R.id.tv_title); TextView tv_content = layout.findViewById(R.id.tv_content); - tv_content.setText(TextViewUtil.getClickableHtml(webviewData, context, Color.rgb(23,106,230))); + tv_content.setText(TextViewUtil.getClickableHtml(webviewData, context, Color.rgb(23,106,230), SimpleBrowserActivity.class)); tv_content.setMovementMethod(LinkMovementMethod.getInstance()); tv_content.setClickable(false); -- Gitblit v1.8.0