From b9c6b4afecc447afd6a2005fc6de5f185374eb76 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 28 Sep 2022 15:07:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/activity/ZhuangBanActivity.java | 18 ++++++++++++++++++ .../views/MainHomeLiveWeekItemViewHolder.java | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java index 9150749eb..841d7ea18 100644 --- a/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/ZhuangBanActivity.java @@ -302,6 +302,24 @@ public class ZhuangBanActivity extends AbsActivity { intent.putExtra("isFull", false); mContext.startActivity(intent); + } + /** + * 新跳转 + * + * @param url 跳转的url + * @param title 有标题的展示标题 + */ + @JavascriptInterface + public void androidClickToNewH5PageView(String url, String title) { + url = CommonAppConfig.HOST + url; + url += "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + + CommonAppConfig.getInstance().getToken(); + Log.i("tag", url); + Intent intent = new Intent(mContext, com.yunbao.live.activity.ZhuangBanActivity.class); + intent.putExtra("url", url); + intent.putExtra("title", title); + mContext.startActivity(intent); + } /** * 设置超皇字体颜色 diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeLiveWeekItemViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeLiveWeekItemViewHolder.java index a60493099..0d3beb827 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeLiveWeekItemViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeLiveWeekItemViewHolder.java @@ -67,7 +67,7 @@ public class MainHomeLiveWeekItemViewHolder extends RecyclerView.ViewHolder { public void onComplete(SVGAVideoEntity videoItem) { SVGADrawable drawable = new SVGADrawable(videoItem); weekSvga.setImageDrawable(drawable); - SVGAViewUtils.playEndClear(weekSvga); + SVGAViewUtils.playEndClear(weekSvga,false); weekSvga.setClearsAfterStop(false); }